6 -- COPYING file in the source package for more information. |
6 -- COPYING file in the source package for more information. |
7 -- |
7 -- |
8 |
8 |
9 local verse = require "verse"; |
9 local verse = require "verse"; |
10 local b64 = require("mime").b64; |
10 local b64 = require("mime").b64; |
11 local sha1 = require("util.hashes").sha1; |
11 local sha1 = require("prosody.util.hashes").sha1; |
12 local calculate_hash = require "util.caps".calculate_hash; |
12 local calculate_hash = require "prosody.util.caps".calculate_hash; |
13 |
13 |
14 local xmlns_caps = "http://jabber.org/protocol/caps"; |
14 local xmlns_caps = "http://jabber.org/protocol/caps"; |
15 local xmlns_disco = "http://jabber.org/protocol/disco"; |
15 local xmlns_disco = "http://jabber.org/protocol/disco"; |
16 local xmlns_disco_info = xmlns_disco.."#info"; |
16 local xmlns_disco_info = xmlns_disco.."#info"; |
17 local xmlns_disco_items = xmlns_disco.."#items"; |
17 local xmlns_disco_items = xmlns_disco.."#items"; |