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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user