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
743 ret = AVERROR(EINVAL);743 ret = AVERROR(EINVAL);
744 return ret;744 return ret;
745 }745 }
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;
750 }746 }
751 747
752 if (c->key_file) {748 if (c->key_file) {
@@ -764,10 +760,6 @@ static av_cold int openssl_init_ca_key_cert(URLContext *h) · 11 unmodified lines
764 ret = AVERROR(EINVAL);760 ret = AVERROR(EINVAL);
765 return ret;761 return ret;
766 }762 }
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;
771 }763 }
772 ret = 0;764 ret = 0;
773fail:765fail:

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