Lines Matching refs:sni_certs
145 php_openssl_sni_cert_t *sni_certs; member
1293 if (!(sslsock->sni_cert_count && sslsock->sni_certs)) { in server_sni_callback()
1298 if (matches_wildcard_name(server_name, sslsock->sni_certs[i].name)) { in server_sni_callback()
1299 SSL_set_SSL_CTX(ssl_handle, sslsock->sni_certs[i].ctx); in server_sni_callback()
1343 sslsock->sni_certs = (php_openssl_sni_cert_t*)safe_pemalloc(sslsock->sni_cert_count, in enable_server_sni()
1346 memset(sslsock->sni_certs, 0, sslsock->sni_cert_count * sizeof(php_openssl_sni_cert_t)); in enable_server_sni()
1380 sslsock->sni_certs[i].name = pestrdup(ZSTR_VAL(key), php_stream_is_persistent(stream)); in enable_server_sni()
1381 sslsock->sni_certs[i].ctx = ctx; in enable_server_sni()
2156 if (sslsock->sni_certs) { in php_openssl_sockop_close()
2158 if (sslsock->sni_certs[i].ctx) { in php_openssl_sockop_close()
2159 SSL_CTX_free(sslsock->sni_certs[i].ctx); in php_openssl_sockop_close()
2160 pefree(sslsock->sni_certs[i].name, php_stream_is_persistent(stream)); in php_openssl_sockop_close()
2163 pefree(sslsock->sni_certs, php_stream_is_persistent(stream)); in php_openssl_sockop_close()
2164 sslsock->sni_certs = NULL; in php_openssl_sockop_close()