summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2009-06-03 12:41:46 +0000
committerIlia Alshanetsky <iliaa@php.net>2009-06-03 12:41:46 +0000
commit3e79cbe9b10a1930c89aeccda87fd3af08fcb1e2 (patch)
tree2aef8a8d2625fba34b74f086f89de22938d4020d /ext/soap/php_http.c
parentba836422c67b0418cbf6170817a2333e70236a6f (diff)
downloadphp-git-3e79cbe9b10a1930c89aeccda87fd3af08fcb1e2.tar.gz
MFB: Fixed bug #46386 (Digest authentication with SOAP module fails against
MSSQL SOAP services)
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 4ff4ed9577..17c72a7fb3 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -614,6 +614,11 @@ try_again:
smart_str_append_const(&soap_headers, "\", opaque=\"");
smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp));
}
+ if (zend_hash_find(Z_ARRVAL_PP(digest), "algorithm", sizeof("algorithm"), (void **)&tmp) == SUCCESS &&
+ Z_TYPE_PP(tmp) == IS_STRING) {
+ smart_str_append_const(&soap_headers, "\", algorithm=\"");
+ smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp));
+ }
smart_str_append_const(&soap_headers, "\"\r\n");
}
} else {