Lines Matching defs:shr
170 TLSShared *shr = &tls_ctx->tls_shared;
177 if ((ret = ff_tls_open_underlying(shr, h, uri, options)) < 0)
188 if (shr->ca_file) {
189 if ((ret = mbedtls_x509_crt_parse_file(&tls_ctx->ca_cert, shr->ca_file)) != 0) {
196 if (shr->cert_file) {
197 if ((ret = mbedtls_x509_crt_parse_file(&tls_ctx->own_cert, shr->cert_file)) != 0) {
213 if (shr->key_file) {
215 shr->key_file,
228 shr->listen ? MBEDTLS_SSL_IS_SERVER : MBEDTLS_SSL_IS_CLIENT,
236 shr->verify ? MBEDTLS_SSL_VERIFY_REQUIRED : MBEDTLS_SSL_VERIFY_NONE);
251 if (!shr->listen && !shr->numerichost) {
252 if ((ret = mbedtls_ssl_set_hostname(&tls_ctx->ssl_context, shr->host)) != 0) {
259 mbedtls_ssl_set_bio(&tls_ctx->ssl_context, shr->tcp, mbedtls_send, mbedtls_recv, NULL);
269 if (shr->verify) {