summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2009-06-03 12:39:50 +0000
committerIlia Alshanetsky <iliaa@php.net>2009-06-03 12:39:50 +0000
commit2c31cd513b58bc280c3e392d4a11d0c2b80ed7dc (patch)
tree60ace91c43687d7e0d73f275464c23f40f07afec /ext/soap/php_http.c
parent2e8ad7f7d1376f88a6e881cb8868f86f7d5b8ee0 (diff)
downloadphp-git-2c31cd513b58bc280c3e392d4a11d0c2b80ed7dc.tar.gz
Fixed bug #46386 (Digest authentication with SOAP module fails against MSSQL
SOAP services) #original patch by lordelph at gmail dot com
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 42c939bdb2..563087a31d 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -612,6 +612,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 {