authentication issues. This was committed in revision 44844, where the commit
message was just "small formatting cleanup", so I am pretty sure he didn't mean
to commit this part.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44876
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
if (ast_strlen_zero(of))
return AUTH_SUCCESSFUL;
- if (1) {
- const char *hdr = (sipmethod == SIP_REGISTER || sipmethod == SIP_SUBSCRIBE) ?
- "Authorization" : "Proxy-Authorization";
- if ( (hdr = get_header(req, hdr)) && (hdr = strstr(hdr, "username=\"")) ) {
- ast_copy_string(from, hdr + strlen("username=\""), sizeof(from));
- of = from;
- of = strsep(&of, "\"");
- }
- }
-
if (!authpeer) /* If we are looking for a peer, don't check the user objects (or realtime) */
user = find_user(of, 1);