Lines Matching refs:shr
165 TLSShared *shr = &tls_ctx->tls_shared; in tls_open() local
172 if ((ret = ff_tls_open_underlying(shr, h, uri, options)) < 0) in tls_open()
183 if (shr->ca_file) { in tls_open()
184 if ((ret = mbedtls_x509_crt_parse_file(&tls_ctx->ca_cert, shr->ca_file)) != 0) { in tls_open()
191 if (shr->cert_file) { in tls_open()
192 if ((ret = mbedtls_x509_crt_parse_file(&tls_ctx->own_cert, shr->cert_file)) != 0) { in tls_open()
199 if (shr->key_file) { in tls_open()
201 shr->key_file, in tls_open()
218 … shr->listen ? MBEDTLS_SSL_IS_SERVER : MBEDTLS_SSL_IS_CLIENT, in tls_open()
226 shr->ca_file ? MBEDTLS_SSL_VERIFY_REQUIRED : MBEDTLS_SSL_VERIFY_NONE); in tls_open()
241 if (!shr->listen && !shr->numerichost) { in tls_open()
242 if ((ret = mbedtls_ssl_set_hostname(&tls_ctx->ssl_context, shr->host)) != 0) { in tls_open()
249 mbedtls_ssl_set_bio(&tls_ctx->ssl_context, shr->tcp, mbedtls_send, mbedtls_recv, NULL); in tls_open()
259 if (shr->verify) { in tls_open()