mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/tls: fix {} error for the GNUTLS case
Found-by:" Geek.Song" <ffmpeg@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
191ee4aefb
commit
df21537dfb
@ -240,7 +240,7 @@ static int tls_open(URLContext *h, const char *uri, int flags)
|
|||||||
ret = AVERROR(EIO);
|
ret = AVERROR(EIO);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
} else if (c->cert_file || c->key_file) {
|
} else if (c->cert_file || c->key_file)
|
||||||
av_log(h, AV_LOG_ERROR, "cert and key required\n");
|
av_log(h, AV_LOG_ERROR, "cert and key required\n");
|
||||||
gnutls_credentials_set(c->session, GNUTLS_CRD_CERTIFICATE, c->cred);
|
gnutls_credentials_set(c->session, GNUTLS_CRD_CERTIFICATE, c->cred);
|
||||||
gnutls_transport_set_ptr(c->session, (gnutls_transport_ptr_t)
|
gnutls_transport_set_ptr(c->session, (gnutls_transport_ptr_t)
|
||||||
|
Loading…
Reference in New Issue
Block a user