History

avformat/tls_openssl: don't abort if dtls has no key/cert set

Timo Rothenpieler committed 1 year ago

Commit db0adbb1 parent 951013e1 file · +0 −8Browse files

Unified · Split

libavformat/tls_openssl.c+0−8
@@ -743,10 +743,6 @@ static av_cold int openssl_init_ca_key_cert(URLContext *h) · 742 unmodified lines
743743 ret = AVERROR(EINVAL);
744744 return ret;
745745 }
746− } else if (c->is_dtls){
747− av_log(p, AV_LOG_ERROR, "TLS: Init cert failed, %s\n", openssl_get_error(p));
748− ret = AVERROR(EINVAL);
749− goto fail;
750746 }
751747
752748 if (c->key_file) {
@@ -764,10 +760,6 @@ static av_cold int openssl_init_ca_key_cert(URLContext *h) · 11 unmodified lines
764760 ret = AVERROR(EINVAL);
765761 return ret;
766762 }
767− } else if (c->is_dtls) {
768− av_log(p, AV_LOG_ERROR, "TLS: Init pkey failed, %s\n", openssl_get_error(p));
769− ret = AVERROR(EINVAL);
770− goto fail;
771763 }
772764 ret = 0;
773765 fail:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t