Blame SOURCES/cve-2014-1568-nss-extra.patch

580f11
580f11
# HG changeset patch
580f11
# User Kai Engert <kaie@kuix.de>
580f11
# Date 1411493980 -7200
580f11
# Node ID 8dd6c6ac977d063dbd093f092ba46e50e9bcb80b
580f11
# Parent  fb7208e91ae8e819b38a80480f816efb32fbfab3
580f11
Bug 1064636, follow up commit to fix Windows build bustage
580f11
580f11
diff --git a/lib/cryptohi/secvfy.c b/lib/cryptohi/secvfy.c
580f11
--- a/lib/cryptohi/secvfy.c
580f11
+++ b/lib/cryptohi/secvfy.c
580f11
@@ -595,18 +595,18 @@ VFY_EndWithSignature(VFYContext *cx, SEC
580f11
 	}
580f11
 	break;
580f11
       case rsaKey:
580f11
       {
580f11
         SECItem digest;
580f11
         digest.data = final;
580f11
         digest.len = part;
580f11
 	if (sig) {
580f11
+	    SECOidTag hashid;
580f11
 	    PORT_Assert(cx->hashAlg != SEC_OID_UNKNOWN);
580f11
-	    SECOidTag hashid;
580f11
 	    rv = recoverPKCS1DigestInfo(cx->hashAlg, &hashid,
580f11
 					&cx->pkcs1RSADigestInfo,
580f11
 					&cx->pkcs1RSADigestInfoLen,
580f11
 					cx->key,
580f11
 					sig, cx->wincx);
580f11
 	    PORT_Assert(cx->hashAlg == hashid);
580f11
 	    if (rv != SECSuccess) {
580f11
 		return SECFailure;
580f11