summaryrefslogtreecommitdiff
path: root/libavformat/protocols.c
diff options
context:
space:
mode:
authorparazyd <parazyd@dyne.org>2021-02-28 23:47:05 +0100
committerMarton Balint <cus@passwd.hu>2021-03-11 23:47:19 +0100
commit51367267c8a9f1a840f5e810f8c788e6e03712a5 (patch)
treec8129640c2a34829b10bc34e9315757e8d81b6dc /libavformat/protocols.c
parented4c2e183bc61414abb421b2bf19ac44e436da06 (diff)
avformat/gopher: Add support for Gopher over TLS
This commit adds a "gophers" handler to the gopher protocol. gophers is a community-adopted protocol that acts the same way like normal gopher with the added TLS encapsulation. The gophers protocol is supported by gopher servers like geomydae(8), and clients like curl(1), clic(1), and hurl(1). This commit also adds compilation guards to both gopher and gophers, since now there are two protocols in the file it makes sense to have this addition. Signed-off-by: parazyd <parazyd@dyne.org> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/protocols.c')
-rw-r--r--libavformat/protocols.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/protocols.c b/libavformat/protocols.c
index 7df18fbb3b..9e77dc2506 100644
--- a/libavformat/protocols.c
+++ b/libavformat/protocols.c
@@ -34,6 +34,7 @@ extern const URLProtocol ff_ffrtmphttp_protocol;
extern const URLProtocol ff_file_protocol;
extern const URLProtocol ff_ftp_protocol;
extern const URLProtocol ff_gopher_protocol;
+extern const URLProtocol ff_gophers_protocol;
extern const URLProtocol ff_hls_protocol;
extern const URLProtocol ff_http_protocol;
extern const URLProtocol ff_httpproxy_protocol;