com php-src: C89: ext/openssl/openssl.c
| From: | Michael Wallner | Date: | Wed, 09 Oct 2013 15:16:25 +0000 |
| Subject: | com php-src: C89: ext/openssl/openssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73419@lists.php.net to get a copy of this message | ||
Commit: e2d123a72092cf010209607d6aa504cfda743e75
Author: Michael Wallner <mike@php.net> Wed, 9 Oct 2013 17:16:25 +0200
Parents: c85c50e35c3a49f3c0e04d8ff98d6460f1df0e7a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e2d123a72092cf010209607d6aa504cfda743e75
Log:
C89
Changed paths:
M ext/openssl/openssl.c
Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 4bacfb7..952bd75 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -5014,9 +5014,10 @@ static zend_bool matches_common_name(X509 *peer, const char *subject_name)
char buf[1024];
X509_NAME *cert_name;
zend_bool is_match = 0;
+ int cert_name_len;
cert_name = X509_get_subject_name(peer);
- int cert_name_len = X509_NAME_get_text_by_NID(cert_name, NID_commonName, buf, sizeof(buf));
+ cert_name_len = X509_NAME_get_text_by_NID(cert_name, NID_commonName, buf, sizeof(buf));
if (cert_name_len == -1) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate peer certificate CN");