Commit:    525e27e1e50dc921a956cf7e66bc2bcd643d76fd
Author:    jas- <jason.ger...@gmail.com>         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)) {


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to