1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 06:02:23 +02:00

Fix for challenge string length pointed out by Kalle Nielsen

This commit is contained in:
jas-
2013-05-06 18:43:13 -06:00
parent 8f56ac8401
commit 525e27e1e5

View File

@@ -1409,7 +1409,7 @@ PHP_FUNCTION(openssl_spki_new)
}
if (challenge) {
ASN1_STRING_set(spki->spkac->challenge, challenge, (int)strlen(challenge));
ASN1_STRING_set(spki->spkac->challenge, challenge, challenge_len);
}
if (!NETSCAPE_SPKI_set_pubkey(spki, pkey)) {