summaryrefslogtreecommitdiff
path: root/res/res_pjsip
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2014-09-18 19:30:17 +0000
committerSean Bright <sean@malleable.com>2014-09-18 19:30:17 +0000
commit6b3c47bd6ab2bbb00ca3a7a4b4d2452b71dfe582 (patch)
treee518306b2ead03dd0b2164e49da9cc8612ae4abe /res/res_pjsip
parentc7ae706b2d13aa0194816d977103073fe2501259 (diff)
res_pjsip: Don't require a password when doing userpass authentication.
An empty password is valid for username/password authentication so we should allow password to be empty/not supplied. Review: https://reviewboard.asterisk.org/r/3988 ........ Merged revisions 423481 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@423482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip')
-rw-r--r--res/res_pjsip/config_auth.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/res/res_pjsip/config_auth.c b/res/res_pjsip/config_auth.c
index b8c9bc9d1..fcab6a84b 100644
--- a/res/res_pjsip/config_auth.c
+++ b/res/res_pjsip/config_auth.c
@@ -94,13 +94,6 @@ static int auth_apply(const struct ast_sorcery *sorcery, void *obj)
}
switch (auth->type) {
- case AST_SIP_AUTH_TYPE_USER_PASS:
- if (ast_strlen_zero(auth->auth_pass)) {
- ast_log(LOG_ERROR, "'userpass' authentication specified but no "
- "password specified for auth '%s'\n", ast_sorcery_object_get_id(auth));
- res = -1;
- }
- break;
case AST_SIP_AUTH_TYPE_MD5:
if (ast_strlen_zero(auth->md5_creds)) {
ast_log(LOG_ERROR, "'md5' authentication specified but no md5_cred "
@@ -113,6 +106,7 @@ static int auth_apply(const struct ast_sorcery *sorcery, void *obj)
res = -1;
}
break;
+ case AST_SIP_AUTH_TYPE_USER_PASS:
case AST_SIP_AUTH_TYPE_ARTIFICIAL:
break;
}