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
567567 return 1;
568568 }
569569
570−#define GET_BIO_DATA(x) BIO_get_data(x)
571−
572570 static int url_bio_bread(BIO *b, char *buf, int len)
573571 {
574− TLSContext *c = GET_BIO_DATA(b);
572+ TLSContext *c = BIO_get_data(b);
575573 int ret = ffurl_read(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len);
576574 if (ret >= 0)
577575 return ret;
@@ -587,7 +585,7 @@ static int url_bio_bread(BIO *b, char *buf, int len) · 9 unmodified lines
587585
588586 static int url_bio_bwrite(BIO *b, const char *buf, int len)
589587 {
590− TLSContext *c = GET_BIO_DATA(b);
588+ TLSContext *c = BIO_get_data(b);
591589 int ret = ffurl_write(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len);
592590 if (ret >= 0)
593591 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