summaryrefslogtreecommitdiffstats
path: root/net/third_party
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 05:42:37 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 05:42:37 +0000
commitad2a7ee245edbe4ca64f96ee65774d9c2afdd9c5 (patch)
tree703180b435dfebe09e1bb50548e1761f46677819 /net/third_party
parent5388e2d3221ad13455602b2afb5e6961245c9c85 (diff)
downloadchromium_src-ad2a7ee245edbe4ca64f96ee65774d9c2afdd9c5.zip
chromium_src-ad2a7ee245edbe4ca64f96ee65774d9c2afdd9c5.tar.gz
chromium_src-ad2a7ee245edbe4ca64f96ee65774d9c2afdd9c5.tar.bz2
Do not pass CRYPT_NOHASHOID to CryptSignHash with CALG_SSL3_SHAMD5.
This may fix bug 72041. R=wtc BUG=72041 TEST=covered by existing net_unittests Review URL: http://codereview.chromium.org/6458023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/third_party')
-rw-r--r--net/third_party/nss/ssl/sslplatf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/third_party/nss/ssl/sslplatf.c b/net/third_party/nss/ssl/sslplatf.c
index 213feee..9ab6172 100644
--- a/net/third_party/nss/ssl/sslplatf.c
+++ b/net/third_party/nss/ssl/sslplatf.c
@@ -263,7 +263,7 @@ ssl3_PlatformSignHashes(SSL3Hashes *hash, PlatformKey key, SECItem *buf,
PORT_SetError(SSL_ERROR_SIGN_HASHES_FAILURE);
goto done;
}
- if (!CryptSignHash(hHash, key->dwKeySpec, NULL, CRYPT_NOHASHOID,
+ if (!CryptSignHash(hHash, key->dwKeySpec, NULL, 0,
NULL, &signatureLen) || signatureLen == 0) {
PORT_SetError(SSL_ERROR_SIGN_HASHES_FAILURE);
goto done;
@@ -272,7 +272,7 @@ ssl3_PlatformSignHashes(SSL3Hashes *hash, PlatformKey key, SECItem *buf,
if (!buf->data)
goto done; /* error code was set. */
- if (!CryptSignHash(hHash, key->dwKeySpec, NULL, CRYPT_NOHASHOID,
+ if (!CryptSignHash(hHash, key->dwKeySpec, NULL, 0,
(BYTE*)buf->data, &signatureLen)) {
PORT_SetError(SSL_ERROR_SIGN_HASHES_FAILURE);
goto done;