| 225 | } |
| 226 | |
| 227 | static av_cold int libssh_open(URLContext *h, const char *url, int flags) |
| 228 | { |
| 229 | int ret; |
| 230 | LIBSSHContext *libssh = h->priv_data; |
| 231 | char path[MAX_URL_SIZE]; |
| 232 | |
| 233 | if ((ret = libssh_connect(h, url, path, sizeof(path))) < 0) |
| 234 | goto fail; |
| 235 | |
| 236 | if ((ret = libssh_open_file(libssh, flags, path)) < 0) |
| 237 | goto fail; |
| 238 | |
| 239 | libssh_stat_file(libssh); |
| 240 | |
| 241 | return 0; |
| 242 | |
| 243 | fail: |
| 244 | libssh_close(h); |
| 245 | return ret; |
| 246 | } |
| 247 | |
| 248 | static int64_t libssh_seek(URLContext *h, int64_t pos, int whence) |
| 249 | { |
nothing calls this directly
no test coverage detected