|
|
@ -326,6 +326,12 @@ static int tls_get_file_handle(URLContext *h) |
|
|
|
return ffurl_get_file_handle(c->tls_shared.tcp); |
|
|
|
return ffurl_get_file_handle(c->tls_shared.tcp); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int tls_get_short_seek(URLContext *h) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
TLSContext *s = h->priv_data; |
|
|
|
|
|
|
|
return ffurl_get_short_seek(s->tls_shared.tcp); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static const AVOption options[] = { |
|
|
|
static const AVOption options[] = { |
|
|
|
TLS_COMMON_OPTIONS(TLSContext, tls_shared), \
|
|
|
|
TLS_COMMON_OPTIONS(TLSContext, tls_shared), \
|
|
|
|
{"key_password", "Password for the private key file", OFFSET(priv_key_pw), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL }, \
|
|
|
|
{"key_password", "Password for the private key file", OFFSET(priv_key_pw), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL }, \
|
|
|
@ -346,6 +352,7 @@ const URLProtocol ff_tls_protocol = { |
|
|
|
.url_write = tls_write, |
|
|
|
.url_write = tls_write, |
|
|
|
.url_close = tls_close, |
|
|
|
.url_close = tls_close, |
|
|
|
.url_get_file_handle = tls_get_file_handle, |
|
|
|
.url_get_file_handle = tls_get_file_handle, |
|
|
|
|
|
|
|
.url_get_short_seek = tls_get_short_seek, |
|
|
|
.priv_data_size = sizeof(TLSContext), |
|
|
|
.priv_data_size = sizeof(TLSContext), |
|
|
|
.flags = URL_PROTOCOL_FLAG_NETWORK, |
|
|
|
.flags = URL_PROTOCOL_FLAG_NETWORK, |
|
|
|
.priv_data_class = &tls_class, |
|
|
|
.priv_data_class = &tls_class, |
|
|
|