Lines Matching refs:sni_certs
154 php_openssl_sni_cert_t *sni_certs; member
1321 if (!(sslsock->sni_cert_count && sslsock->sni_certs)) { in server_sni_callback()
1326 if (matches_wildcard_name(server_name, sslsock->sni_certs[i].name)) { in server_sni_callback()
1327 SSL_set_SSL_CTX(ssl_handle, sslsock->sni_certs[i].ctx); in server_sni_callback()
1371 sslsock->sni_certs = (php_openssl_sni_cert_t*)safe_pemalloc(sslsock->sni_cert_count, in enable_server_sni()
1374 memset(sslsock->sni_certs, 0, sslsock->sni_cert_count * sizeof(php_openssl_sni_cert_t)); in enable_server_sni()
1408 sslsock->sni_certs[i].name = pestrdup(ZSTR_VAL(key), php_stream_is_persistent(stream)); in enable_server_sni()
1409 sslsock->sni_certs[i].ctx = ctx; in enable_server_sni()
2200 if (sslsock->sni_certs) { in php_openssl_sockop_close()
2202 if (sslsock->sni_certs[i].ctx) { in php_openssl_sockop_close()
2203 SSL_CTX_free(sslsock->sni_certs[i].ctx); in php_openssl_sockop_close()
2204 pefree(sslsock->sni_certs[i].name, php_stream_is_persistent(stream)); in php_openssl_sockop_close()
2207 pefree(sslsock->sni_certs, php_stream_is_persistent(stream)); in php_openssl_sockop_close()
2208 sslsock->sni_certs = NULL; in php_openssl_sockop_close()