summaryrefslogtreecommitdiff
path: root/lib/gopher.h
diff options
context:
space:
mode:
authorparazyd <parazyd@dyne.org>2020-11-15 18:46:06 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-15 12:58:12 +0100
commita1f06f32b8603427535fc21183a84ce92a9b96f7 (patch)
treef78431d8a63fc74f68216ba88600363ca421809b /lib/gopher.h
parentbe8c94da781f2df2b8e424923581945195025db0 (diff)
downloadcurl-a1f06f32b8603427535fc21183a84ce92a9b96f7.tar.gz
gopher: Implement secure gopher protocol.
This commit introduces a "gophers" handler inside the gopher protocol if USE_SSL is defined. This protocol is no different than the usual gopher prococol, with the added TLS encapsulation upon connecting. The protocol has been adopted in the gopher community, and many people have enabled TLS in their gopher daemons like geomyidae(8), and clients, like clic(1) and hurl(1). I have not implemented test units for this protocol because my knowledge of Perl is sub-par. However, for someone more knowledgeable it might be fairly trivial, because the same test that tests the plain gopher protocol can be used for "gophers" just by adding a TLS listener. Signed-off-by: parazyd <parazyd@dyne.org> Closes #6208
Diffstat (limited to 'lib/gopher.h')
-rw-r--r--lib/gopher.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gopher.h b/lib/gopher.h
index b35fa4509..6b8bd554a 100644
--- a/lib/gopher.h
+++ b/lib/gopher.h
@@ -24,6 +24,9 @@
#ifndef CURL_DISABLE_GOPHER
extern const struct Curl_handler Curl_handler_gopher;
+#ifdef USE_SSL
+extern const struct Curl_handler Curl_handler_gophers;
+#endif
#endif
#endif /* HEADER_CURL_GOPHER_H */