mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avformat/tls_openssl: don't abort if dtls has no key/cert set
This commit is contained in:
parent
951013e603
commit
db0adbbd3f
1 changed files with 0 additions and 8 deletions
|
|
@ -743,10 +743,6 @@ static av_cold int openssl_init_ca_key_cert(URLContext *h)
|
|||
ret = AVERROR(EINVAL);
|
||||
return ret;
|
||||
}
|
||||
} else if (c->is_dtls){
|
||||
av_log(p, AV_LOG_ERROR, "TLS: Init cert failed, %s\n", openssl_get_error(p));
|
||||
ret = AVERROR(EINVAL);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (c->key_file) {
|
||||
|
|
@ -764,10 +760,6 @@ static av_cold int openssl_init_ca_key_cert(URLContext *h)
|
|||
ret = AVERROR(EINVAL);
|
||||
return ret;
|
||||
}
|
||||
} else if (c->is_dtls) {
|
||||
av_log(p, AV_LOG_ERROR, "TLS: Init pkey failed, %s\n", openssl_get_error(p));
|
||||
ret = AVERROR(EINVAL);
|
||||
goto fail;
|
||||
}
|
||||
ret = 0;
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue