This was used previously when multiple OpenSSL versions were supported that required this to be handled differently.
Unified · Split
| @@ -567,11 +567,9 @@ static int url_bio_destroy(BIO *b) · 566 unmodified lines | ||
| 567 | 567 | return 1; |
| 568 | 568 | } |
| 569 | 569 | |
| 570 | −#define GET_BIO_DATA(x) BIO_get_data(x) | |
| 571 | − | |
| 572 | 570 | static 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 | 573 | int ret = ffurl_read(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len); |
| 576 | 574 | if (ret >= 0) |
| 577 | 575 | return ret; |
| @@ -587,7 +585,7 @@ static int url_bio_bread(BIO *b, char *buf, int len) · 9 unmodified lines | ||
| 587 | 585 | |
| 588 | 586 | static 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 | 589 | int ret = ffurl_write(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len); |
| 592 | 590 | if (ret >= 0) |
| 593 | 591 | return ret; |