@@ -513,7 +513,7 @@ static bool php_openssl_matches_common_name(X509 *peer, const char *subject_name
513
513
}
514
514
/* }}} */
515
515
516
- static int php_openssl_apply_peer_verification_policy (SSL * ssl , X509 * peer , php_stream * stream ) /* {{{ */
516
+ static zend_result php_openssl_apply_peer_verification_policy (SSL * ssl , X509 * peer , php_stream * stream ) /* {{{ */
517
517
{
518
518
zval * val = NULL ;
519
519
zval * peer_fingerprint ;
@@ -840,7 +840,7 @@ static long php_openssl_load_stream_cafile(X509_STORE *cert_store, const char *c
840
840
}
841
841
/* }}} */
842
842
843
- static int php_openssl_enable_peer_verification (SSL_CTX * ctx , php_stream * stream ) /* {{{ */
843
+ static zend_result php_openssl_enable_peer_verification (SSL_CTX * ctx , php_stream * stream ) /* {{{ */
844
844
{
845
845
zval * val = NULL ;
846
846
char * cafile = NULL ;
@@ -900,7 +900,7 @@ static void php_openssl_disable_peer_verification(SSL_CTX *ctx, php_stream *stre
900
900
}
901
901
/* }}} */
902
902
903
- static int php_openssl_set_local_cert (SSL_CTX * ctx , php_stream * stream ) /* {{{ */
903
+ static zend_result php_openssl_set_local_cert (SSL_CTX * ctx , php_stream * stream ) /* {{{ */
904
904
{
905
905
zval * val = NULL ;
906
906
char * certfile = NULL ;
@@ -1204,7 +1204,7 @@ static RSA *php_openssl_tmp_rsa_cb(SSL *s, int is_export, int keylength)
1204
1204
}
1205
1205
#endif
1206
1206
1207
- static int php_openssl_set_server_dh_param (php_stream * stream , SSL_CTX * ctx ) /* {{{ */
1207
+ static zend_result php_openssl_set_server_dh_param (php_stream * stream , SSL_CTX * ctx ) /* {{{ */
1208
1208
{
1209
1209
zval * zdhpath = php_stream_context_get_option (PHP_STREAM_CONTEXT (stream ), "ssl" , "dh_param" );
1210
1210
if (zdhpath == NULL ) {
@@ -1265,7 +1265,7 @@ static int php_openssl_set_server_dh_param(php_stream * stream, SSL_CTX *ctx) /*
1265
1265
/* }}} */
1266
1266
1267
1267
#if defined(HAVE_ECDH ) && PHP_OPENSSL_API_VERSION < 0x10100
1268
- static int php_openssl_set_server_ecdh_curve (php_stream * stream , SSL_CTX * ctx ) /* {{{ */
1268
+ static zend_result php_openssl_set_server_ecdh_curve (php_stream * stream , SSL_CTX * ctx ) /* {{{ */
1269
1269
{
1270
1270
zval * zvcurve ;
1271
1271
int curve_nid ;
@@ -1301,7 +1301,7 @@ static int php_openssl_set_server_ecdh_curve(php_stream *stream, SSL_CTX *ctx) /
1301
1301
/* }}} */
1302
1302
#endif
1303
1303
1304
- static int php_openssl_set_server_specific_opts (php_stream * stream , SSL_CTX * ctx ) /* {{{ */
1304
+ static zend_result php_openssl_set_server_specific_opts (php_stream * stream , SSL_CTX * ctx ) /* {{{ */
1305
1305
{
1306
1306
zval * zv ;
1307
1307
long ssl_ctx_options = SSL_CTX_get_options (ctx );
@@ -1397,7 +1397,7 @@ static SSL_CTX *php_openssl_create_sni_server_ctx(char *cert_path, char *key_pat
1397
1397
}
1398
1398
/* }}} */
1399
1399
1400
- static int php_openssl_enable_server_sni (php_stream * stream , php_openssl_netstream_data_t * sslsock ) /* {{{ */
1400
+ static zend_result php_openssl_enable_server_sni (php_stream * stream , php_openssl_netstream_data_t * sslsock ) /* {{{ */
1401
1401
{
1402
1402
zval * val ;
1403
1403
zval * current ;
@@ -1608,7 +1608,7 @@ static int php_openssl_server_alpn_callback(SSL *ssl_handle,
1608
1608
1609
1609
#endif
1610
1610
1611
- int php_openssl_setup_crypto (php_stream * stream ,
1611
+ zend_result php_openssl_setup_crypto (php_stream * stream ,
1612
1612
php_openssl_netstream_data_t * sslsock ,
1613
1613
php_stream_xport_crypto_param * cparam ) /* {{{ */
1614
1614
{
@@ -2513,7 +2513,7 @@ static int php_openssl_sockop_set_option(php_stream *stream, int option, int val
2513
2513
}
2514
2514
/* }}} */
2515
2515
2516
- static int php_openssl_sockop_cast (php_stream * stream , int castas , void * * ret ) /* {{{ */
2516
+ static zend_result php_openssl_sockop_cast (php_stream * stream , int castas , void * * ret ) /* {{{ */
2517
2517
{
2518
2518
php_openssl_netstream_data_t * sslsock = (php_openssl_netstream_data_t * )stream -> abstract ;
2519
2519
0 commit comments