From: Ilia Alshanetsky Date: Wed, 3 Jun 2009 12:40:01 +0000 (+0000) Subject: MFB: Fixed bug #46386 (Digest authentication with SOAP module fails against X-Git-Tag: php-5.4.0alpha1~191^2~3419 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8768015b072e3305b75aaa9e7397ff43af42ffd3;p=php MFB: Fixed bug #46386 (Digest authentication with SOAP module fails against MSSQL SOAP services) --- diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index efed060551..2f33099f3b 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -589,6 +589,11 @@ try_again: smart_str_append_const(&soap_headers, "\", opaque=\""); smart_str_appends(&soap_headers, client->digest_opaque); } + 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 {