]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #46386 (Digest authentication with SOAP module fails against
authorIlia Alshanetsky <iliaa@php.net>
Wed, 3 Jun 2009 12:40:01 +0000 (12:40 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 3 Jun 2009 12:40:01 +0000 (12:40 +0000)
MSSQL SOAP services)

ext/soap/php_http.c

index efed060551c905251a9bbfe47629b2873824cea8..2f33099f3b1a41174c17509d4dd73b819ff58930 100644 (file)
@@ -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 {