From d8c87b67316fa87fdb9bd5c8b6b1d3291d9ebc9f Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Thu, 21 May 2020 15:00:11 -0400 Subject: Add gemini protocol support The gemini protocol's "speculative specification" is documented at the following URLs: https://gemini.circumlunar.space/docs/spec-spec.txt gopher://gemini.circumlunar.space/1/docs/spec-spec.txt gemini://gemini.circumlunar.space/docs/spec-spec.txt This patch introduces preliminary support for version 0.11.0 of the specification, as of March 1st 2020. --- src/tool_libinfo.c | 1 + src/tool_paramhlp.c | 1 + src/tool_setopt.c | 1 + 3 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/tool_libinfo.c b/src/tool_libinfo.c index de7ec4d18..4c26376b8 100644 --- a/src/tool_libinfo.c +++ b/src/tool_libinfo.c @@ -54,6 +54,7 @@ CURLcode get_libcurl_info(void) { "file", CURLPROTO_FILE }, { "ftp", CURLPROTO_FTP }, { "ftps", CURLPROTO_FTPS }, + { "gemini", CURLPROTO_GEMINI }, { "gopher", CURLPROTO_GOPHER }, { "http", CURLPROTO_HTTP }, { "https", CURLPROTO_HTTPS }, diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index c375bcc82..f6be25a52 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -335,6 +335,7 @@ long proto2num(struct OperationConfig *config, long *val, const char *str) { "smtp", CURLPROTO_SMTP }, { "smtps", CURLPROTO_SMTPS }, { "rtsp", CURLPROTO_RTSP }, + { "gemini", CURLPROTO_GEMINI }, { "gopher", CURLPROTO_GOPHER }, { "smb", CURLPROTO_SMB }, { "smbs", CURLPROTO_SMBS }, diff --git a/src/tool_setopt.c b/src/tool_setopt.c index 9858d49c9..383600ab7 100644 --- a/src/tool_setopt.c +++ b/src/tool_setopt.c @@ -145,6 +145,7 @@ const struct NameValue setopt_nv_CURLPROTO[] = { NV(CURLPROTO_FILE), NV(CURLPROTO_FTP), NV(CURLPROTO_FTPS), + NV(CURLPROTO_GEMINI), NV(CURLPROTO_GOPHER), NV(CURLPROTO_HTTP), NV(CURLPROTO_HTTPS), -- cgit v1.2.3