@@ -1512,7 +1512,7 @@ static X509 *php_openssl_x509_from_zval(
1512
1512
PHP_FUNCTION (openssl_x509_export_to_file )
1513
1513
{
1514
1514
X509 * cert ;
1515
- zend_object * cert_obj ;
1515
+ zend_object * cert_obj = NULL ;
1516
1516
zend_string * cert_str ;
1517
1517
1518
1518
bool notext = 1 ;
@@ -1819,7 +1819,7 @@ PHP_FUNCTION(openssl_spki_export_challenge)
1819
1819
PHP_FUNCTION (openssl_x509_export )
1820
1820
{
1821
1821
X509 * cert ;
1822
- zend_object * cert_obj ;
1822
+ zend_object * cert_obj = NULL ;
1823
1823
zend_string * cert_str ;
1824
1824
zval * zout ;
1825
1825
bool notext = 1 ;
@@ -1898,7 +1898,7 @@ zend_string* php_openssl_x509_fingerprint(X509 *peer, const char *method, bool r
1898
1898
PHP_FUNCTION (openssl_x509_fingerprint )
1899
1899
{
1900
1900
X509 * cert ;
1901
- zend_object * cert_obj ;
1901
+ zend_object * cert_obj = NULL ;
1902
1902
zend_string * cert_str ;
1903
1903
bool raw_output = 0 ;
1904
1904
char * method = "sha1" ;
@@ -1934,7 +1934,7 @@ PHP_FUNCTION(openssl_x509_fingerprint)
1934
1934
PHP_FUNCTION (openssl_x509_check_private_key )
1935
1935
{
1936
1936
X509 * cert ;
1937
- zend_object * cert_obj ;
1937
+ zend_object * cert_obj = NULL ;
1938
1938
zend_string * cert_str ;
1939
1939
zval * zkey ;
1940
1940
EVP_PKEY * key = NULL ;
@@ -1967,7 +1967,7 @@ PHP_FUNCTION(openssl_x509_check_private_key)
1967
1967
PHP_FUNCTION (openssl_x509_verify )
1968
1968
{
1969
1969
X509 * cert ;
1970
- zend_object * cert_obj ;
1970
+ zend_object * cert_obj = NULL ;
1971
1971
zend_string * cert_str ;
1972
1972
zval * zkey ;
1973
1973
EVP_PKEY * key = NULL ;
@@ -2076,7 +2076,7 @@ static int openssl_x509v3_subjectAltName(BIO *bio, X509_EXTENSION *extension)
2076
2076
PHP_FUNCTION (openssl_x509_parse )
2077
2077
{
2078
2078
X509 * cert ;
2079
- zend_object * cert_obj ;
2079
+ zend_object * cert_obj = NULL ;
2080
2080
zend_string * cert_str ;
2081
2081
int i , sig_nid ;
2082
2082
bool useshortnames = 1 ;
@@ -2332,7 +2332,7 @@ static int check_cert(X509_STORE *ctx, X509 *x, STACK_OF(X509) *untrustedchain,
2332
2332
PHP_FUNCTION (openssl_x509_checkpurpose )
2333
2333
{
2334
2334
X509 * cert ;
2335
- zend_object * cert_obj ;
2335
+ zend_object * cert_obj = NULL ;
2336
2336
zend_string * cert_str ;
2337
2337
zval * zcainfo = NULL ;
2338
2338
X509_STORE * cainfo = NULL ;
@@ -2468,7 +2468,7 @@ PHP_FUNCTION(openssl_x509_read)
2468
2468
{
2469
2469
X509 * cert ;
2470
2470
php_openssl_certificate_object * x509_cert_obj ;
2471
- zend_object * cert_obj ;
2471
+ zend_object * cert_obj = NULL ;
2472
2472
zend_string * cert_str ;
2473
2473
2474
2474
ZEND_PARSE_PARAMETERS_START (1 , 1 )
@@ -2569,7 +2569,7 @@ static STACK_OF(X509) *php_array_to_X509_sk(zval * zcerts, uint32_t arg_num, con
2569
2569
PHP_FUNCTION (openssl_pkcs12_export_to_file )
2570
2570
{
2571
2571
X509 * cert ;
2572
- zend_object * cert_obj ;
2572
+ zend_object * cert_obj = NULL ;
2573
2573
zend_string * cert_str ;
2574
2574
BIO * bio_out = NULL ;
2575
2575
PKCS12 * p12 = NULL ;
@@ -2672,7 +2672,7 @@ PHP_FUNCTION(openssl_pkcs12_export_to_file)
2672
2672
PHP_FUNCTION (openssl_pkcs12_export )
2673
2673
{
2674
2674
X509 * cert ;
2675
- zend_object * cert_obj ;
2675
+ zend_object * cert_obj = NULL ;
2676
2676
zend_string * cert_str ;
2677
2677
BIO * bio_out ;
2678
2678
PKCS12 * p12 = NULL ;
@@ -3089,7 +3089,7 @@ static X509_REQ *php_openssl_csr_from_param(
3089
3089
PHP_FUNCTION (openssl_csr_export_to_file )
3090
3090
{
3091
3091
X509_REQ * csr ;
3092
- zend_object * csr_obj ;
3092
+ zend_object * csr_obj = NULL ;
3093
3093
zend_string * csr_str ;
3094
3094
bool notext = 1 ;
3095
3095
char * filename = NULL ;
@@ -3143,7 +3143,7 @@ PHP_FUNCTION(openssl_csr_export_to_file)
3143
3143
PHP_FUNCTION (openssl_csr_export )
3144
3144
{
3145
3145
X509_REQ * csr ;
3146
- zend_object * csr_obj ;
3146
+ zend_object * csr_obj = NULL ;
3147
3147
zend_string * csr_str ;
3148
3148
zval * zout ;
3149
3149
bool notext = 1 ;
@@ -3199,11 +3199,11 @@ PHP_FUNCTION(openssl_csr_export)
3199
3199
PHP_FUNCTION (openssl_csr_sign )
3200
3200
{
3201
3201
X509_REQ * csr ;
3202
- zend_object * csr_obj ;
3202
+ zend_object * csr_obj = NULL ;
3203
3203
zend_string * csr_str ;
3204
3204
3205
3205
php_openssl_certificate_object * cert_object ;
3206
- zend_object * cert_obj ;
3206
+ zend_object * cert_obj = NULL ;
3207
3207
zend_string * cert_str ;
3208
3208
zval * zpkey , * args = NULL ;
3209
3209
zend_long num_days ;
@@ -3458,7 +3458,7 @@ PHP_FUNCTION(openssl_csr_new)
3458
3458
PHP_FUNCTION (openssl_csr_get_subject )
3459
3459
{
3460
3460
X509_REQ * csr ;
3461
- zend_object * csr_obj ;
3461
+ zend_object * csr_obj = NULL ;
3462
3462
zend_string * csr_str ;
3463
3463
bool use_shortnames = 1 ;
3464
3464
X509_NAME * subject ;
@@ -3502,7 +3502,7 @@ static EVP_PKEY *php_openssl_extract_public_key(EVP_PKEY *priv_key)
3502
3502
/* {{{ Returns the subject of a CERT or FALSE on error */
3503
3503
PHP_FUNCTION (openssl_csr_get_public_key )
3504
3504
{
3505
- zend_object * csr_obj ;
3505
+ zend_object * csr_obj = NULL ;
3506
3506
zend_string * csr_str ;
3507
3507
bool use_shortnames = 1 ;
3508
3508
@@ -5791,7 +5791,7 @@ PHP_FUNCTION(openssl_pkcs7_read)
5791
5791
PHP_FUNCTION (openssl_pkcs7_sign )
5792
5792
{
5793
5793
X509 * cert = NULL ;
5794
- zend_object * cert_obj ;
5794
+ zend_object * cert_obj = NULL ;
5795
5795
zend_string * cert_str ;
5796
5796
zval * zprivkey , * zheaders ;
5797
5797
zval * hval ;
@@ -6437,7 +6437,7 @@ PHP_FUNCTION(openssl_cms_read)
6437
6437
PHP_FUNCTION (openssl_cms_sign )
6438
6438
{
6439
6439
X509 * cert = NULL ;
6440
- zend_object * cert_obj ;
6440
+ zend_object * cert_obj = NULL ;
6441
6441
zend_string * cert_str ;
6442
6442
zval * zprivkey , * zheaders ;
6443
6443
zval * hval ;
0 commit comments