Mercurial > prosody-hg
comparison net/stun.lua @ 12360:0801db678f5e
net.stun: Use util.bitcompat to deal with bit module variances across Lua versions
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 04 Mar 2022 16:58:28 +0100 |
| parents | f81488951f81 |
| children | 7a2f036f73b3 |
comparison
equal
deleted
inserted
replaced
| 12359:f81488951f81 | 12360:0801db678f5e |
|---|---|
| 1 local base64 = require "util.encodings".base64; | 1 local base64 = require "util.encodings".base64; |
| 2 local hashes = require "util.hashes"; | 2 local hashes = require "util.hashes"; |
| 3 local net = require "util.net"; | 3 local net = require "util.net"; |
| 4 local random = require "util.random"; | 4 local random = require "util.random"; |
| 5 local struct = require "util.struct"; | 5 local struct = require "util.struct"; |
| 6 local bit32 = require"util.bitcompat"; | |
| 6 local sxor = require"util.strbitop".sxor; | 7 local sxor = require"util.strbitop".sxor; |
| 7 | 8 |
| 8 --- Public helpers | 9 --- Public helpers |
| 9 | 10 |
| 10 -- Following draft-uberti-behave-turn-rest-00, convert a 'secret' string | 11 -- Following draft-uberti-behave-turn-rest-00, convert a 'secret' string |
