com php-src: after merge fix: ext/openssl/openssl.c

From: Date: Wed, 26 Feb 2014 16:01:24 +0000
Subject: com php-src: after merge fix: ext/openssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76232@lists.php.net to get a copy of this message
Commit: d753db3a817abda43d4fcae19e8ae4aa38050f8b Author: Anatol Belski <ab@php.net> Wed, 26 Feb 2014 17:01:24 +0100 Parents: bd9a370701b37afeddfce5ef8900518330eaece3 Branches: str_size_and_int64_56_backport Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d753db3a817abda43d4fcae19e8ae4aa38050f8b Log: after merge fix Changed paths: M ext/openssl/openssl.c Diff: diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index a141eca..a8ca6f5 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -5401,7 +5401,7 @@ static int win_cert_verify_callback(X509_STORE_CTX *x509_store_ctx, void *arg) / { /* First convert the x509 struct back to a DER encoded buffer and let Windows decode it into a form it can work with */ unsigned char *der_buf = NULL; - int der_len; + php_size_t der_len; der_len = i2d_X509(x509_store_ctx->cert, &der_buf); if (der_len < 0) { @@ -5454,8 +5454,8 @@ static int win_cert_verify_callback(X509_STORE_CTX *x509_store_ctx, void *arg) / /* check the depth */ if (GET_VER_OPT("verify_depth")) { - convert_to_long_ex(val); - verify_depth = (unsigned long)Z_LVAL_PP(val); + convert_to_int_ex(val); + verify_depth = (unsigned long)Z_IVAL_PP(val); } for (i = 0; i < cert_chain_ctx->cChain; i++) { @@ -5629,8 +5629,8 @@ static void enable_peer_verify_callback(SSL_CTX *ctx, php_stream *stream) /* {{{ SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, verify_callback); if (GET_VER_OPT("verify_depth")) { - convert_to_long_ex(val); - SSL_CTX_set_verify_depth(ctx, Z_LVAL_PP(val)); + convert_to_int_ex(val); + SSL_CTX_set_verify_depth(ctx, Z_IVAL_PP(val)); } else { SSL_CTX_set_verify_depth(ctx, PHP_OPENSSL_DEFAULT_STREAM_VERIFY_DEPTH); }

« previous php.cvs (#76232) next »