aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2017-11-12 11:22:24 -0500
committerBrian Cully <bjc@kublai.com>2017-11-12 11:48:47 -0500
commit01fde2b197c3d33d33b8814cdb677f8f262044a0 (patch)
tree3fffe8fd03bfdd264f16280319c684d69d91b38e
parent95232ea1e6ee1752bed33170e352cbf4bcf49141 (diff)
downloadxmpt-01fde2b197c3d33d33b8814cdb677f8f262044a0.tar.gz
xmpt-01fde2b197c3d33d33b8814cdb677f8f262044a0.zip
Use qualified stream tag when expecting stream close.
-rw-r--r--input2
-rw-r--r--xml/signout.expected.xml2
-rw-r--r--xml/signout.xml2
-rwxr-xr-xxmpt6
4 files changed, 8 insertions, 4 deletions
diff --git a/input b/input
index 5effb70..2d508fe 100644
--- a/input
+++ b/input
@@ -26,4 +26,4 @@
</bind>
</iq>
<iq from='test0@localhost' to='test0@localhost/xmpt' id='session' type='result'/>
-</stream>
+</stream:stream>
diff --git a/xml/signout.expected.xml b/xml/signout.expected.xml
index 522b4a3..4ae4038 100644
--- a/xml/signout.expected.xml
+++ b/xml/signout.expected.xml
@@ -1 +1 @@
-</stream>
+</{stream}>
diff --git a/xml/signout.xml b/xml/signout.xml
index 522b4a3..34e306d 100644
--- a/xml/signout.xml
+++ b/xml/signout.xml
@@ -1 +1 @@
-</stream>
+</stream:stream>
diff --git a/xmpt b/xmpt
index bae4eee..37af263 100755
--- a/xmpt
+++ b/xmpt
@@ -245,7 +245,7 @@ sub assert_arg {
# Stick actual execution in its own package so you don't accidentally
# clobber stuff in main while running templates.
-package evalpkg;
+package evalpkg; # TODO: Make package name dynamic.
use MIME::Base64;
@@ -277,3 +277,7 @@ sub resourcepart() {
sub plain_auth() {
MIME::Base64::encode(join("\0", "", bare_jid(), $env{password}));
}
+
+sub stream() {
+ main::assert_arg('stream', 'stream:stream');
+}