History

avformat/tls_openssl: remove now unnecessary define

This was used previously when multiple OpenSSL versions were supported that required this to be handled differently.

Marvin Scholz committed 1 year ago

Commit 1702bec1 parent f0913b31 file · +2 −4Browse files

Unified · Split

libavformat/tls_openssl.c+2−4
@@ -567,11 +567,9 @@ static int url_bio_destroy(BIO *b) · 566 unmodified lines
567 return 1;567 return 1;
568}568}
569 569
570#define GET_BIO_DATA(x) BIO_get_data(x)
571
572static int url_bio_bread(BIO *b, char *buf, int len)570static int url_bio_bread(BIO *b, char *buf, int len)
573{571{
574 TLSContext *c = GET_BIO_DATA(b);572 TLSContext *c = BIO_get_data(b);
575 int ret = ffurl_read(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len);573 int ret = ffurl_read(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len);
576 if (ret >= 0)574 if (ret >= 0)
577 return ret;575 return ret;
@@ -587,7 +585,7 @@ static int url_bio_bread(BIO *b, char *buf, int len) · 9 unmodified lines
587 585
588static int url_bio_bwrite(BIO *b, const char *buf, int len)586static int url_bio_bwrite(BIO *b, const char *buf, int len)
589{587{
590 TLSContext *c = GET_BIO_DATA(b);588 TLSContext *c = BIO_get_data(b);
591 int ret = ffurl_write(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len);589 int ret = ffurl_write(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len);
592 if (ret >= 0)590 if (ret >= 0)
593 return ret;591 return ret;

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