summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-07 15:40:29 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-07 15:40:29 +0200
commit5b1f3237c1cc181d216a02ce604614adb792aa17 (patch)
tree649665eda3bfc6c9c3a1949a9b9a2fa4a3472969 /test
parentd2a391c693c0b1bcd9c5eda132f51be7991db189 (diff)
account: handle URL-encoded passwords (fixes #273)
Diffstat (limited to 'test')
-rw-r--r--test/ua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ua.c b/test/ua.c
index c2b0224..236a580 100644
--- a/test/ua.c
+++ b/test/ua.c
@@ -363,7 +363,7 @@ int test_ua_register_dns(void)
#define USER "alfredh"
-#define PASS "password"
+#define PASS "pass%40word" /* NOTE: url-encoded */
#define DOMAIN "localhost"
static int reg_auth(enum sip_transp tp)
@@ -385,7 +385,7 @@ static int reg_auth(enum sip_transp tp)
TEST_ERR(err);
err = user_add(domain_lookup(t.srvv[0], DOMAIN)->ht_usr,
- "alfredh", "password", DOMAIN);
+ "alfredh", "pass@word", DOMAIN);
TEST_ERR(err);
t.srvv[0]->auth_enabled = true;