| 59 | } |
| 60 | |
| 61 | static ssize_t tls_write_callback(struct tls *ctx, const void *buf, size_t buflen, void *cb_arg) |
| 62 | { |
| 63 | URLContext *h = (URLContext*) cb_arg; |
| 64 | int ret = ffurl_write(h, buf, buflen); |
| 65 | if (ret == AVERROR(EAGAIN)) |
| 66 | return TLS_WANT_POLLOUT; |
| 67 | else if (ret == AVERROR_EXIT) |
| 68 | return 0; |
| 69 | return ret >= 0 ? ret : -1; |
| 70 | } |
| 71 | |
| 72 | static int ff_tls_open(URLContext *h, const char *uri, int flags, AVDictionary **options) |
| 73 | { |
nothing calls this directly
no test coverage detected