com php-src: Fix for challenge string length pointed out by Kalle Nielsen: ext/openssl/openssl.c

From: Date: Tue, 07 May 2013 00:43:13 +0000
Subject: com php-src: Fix for challenge string length pointed out by Kalle Nielsen: ext/openssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to [email protected] to get a copy of this message
Commit:    525e27e1e50dc921a956cf7e66bc2bcd643d76fd
Author:    jas- <[email protected]>         Mon, 6 May 2013 18:43:13 -0600
Parents:   8f56ac8401ed1c3e00b8fba3fb8e5efb565180c4
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=525e27e1e50dc921a956cf7e66bc2bcd643d76fd

Log:
Fix for challenge string length pointed out by Kalle Nielsen

Changed paths:
  M  ext/openssl/openssl.c


Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index dbed22d..68f3aaf 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -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)) {



Thread (1 message)

  • Jason Gerfen
« previous php.cvs (#72158) next »