Lines Matching refs:sni_certs
168 php_openssl_sni_cert_t *sni_certs; member
1340 if (!(sslsock->sni_cert_count && sslsock->sni_certs)) { in php_openssl_server_sni_callback()
1345 if (php_openssl_matches_wildcard_name(server_name, sslsock->sni_certs[i].name)) { in php_openssl_server_sni_callback()
1346 SSL_set_SSL_CTX(ssl_handle, sslsock->sni_certs[i].ctx); in php_openssl_server_sni_callback()
1418 sslsock->sni_certs = (php_openssl_sni_cert_t*)safe_pemalloc(sslsock->sni_cert_count, in php_openssl_enable_server_sni()
1421 memset(sslsock->sni_certs, 0, sslsock->sni_cert_count * sizeof(php_openssl_sni_cert_t)); in php_openssl_enable_server_sni()
1498 sslsock->sni_certs[i].name = pestrdup(ZSTR_VAL(key), php_stream_is_persistent(stream)); in php_openssl_enable_server_sni()
1499 sslsock->sni_certs[i].ctx = ctx; in php_openssl_enable_server_sni()
2221 if (sslsock->sni_certs) { in php_openssl_sockop_close()
2223 if (sslsock->sni_certs[i].ctx) { in php_openssl_sockop_close()
2224 SSL_CTX_free(sslsock->sni_certs[i].ctx); in php_openssl_sockop_close()
2225 pefree(sslsock->sni_certs[i].name, php_stream_is_persistent(stream)); in php_openssl_sockop_close()
2228 pefree(sslsock->sni_certs, php_stream_is_persistent(stream)); in php_openssl_sockop_close()
2229 sslsock->sni_certs = NULL; in php_openssl_sockop_close()