| 48 | } |
| 49 | |
| 50 | static ssize_t tls_read_callback(struct tls *ctx, void *buf, size_t buflen, void *cb_arg) |
| 51 | { |
| 52 | URLContext *h = (URLContext*) cb_arg; |
| 53 | int ret = ffurl_read(h, buf, buflen); |
| 54 | if (ret == AVERROR(EAGAIN)) |
| 55 | return TLS_WANT_POLLIN; |
| 56 | else if (ret == AVERROR_EXIT) |
| 57 | return 0; |
| 58 | return ret >= 0 ? ret : -1; |
| 59 | } |
| 60 | |
| 61 | static ssize_t tls_write_callback(struct tls *ctx, const void *buf, size_t buflen, void *cb_arg) |
| 62 | { |
nothing calls this directly
no test coverage detected