diff --git a/include/client.h b/include/client.h

index f711eea91c3842ac29a884b38e0d7a0ab99cb7fb..40729073bcaa2c0a172d3375662ac91cef0ea550 100644

--- a/include/client.h

+++ b/include/client.h

@@ -68,4 +68,8 @@

// Returns a user-friendly string describing an error.

const char *gemini_strerr(enum gemini_result r, struct gemini_response *resp);

+// Returns the given URL with the input response set to the specified value.

+// The caller must free the string.

+char *gemini_input_url(const char *url, const char *input);

#endif

diff --git a/src/client.c b/src/client.c

index 67671ccca2a25a460681bdffacb981c7f26c1407..c252c9d9ab1783dd462343ce346cc74611e9ae85 100644

--- a/src/client.c

+++ b/src/client.c

@@ -176,7 +176,7 @@ }

char *endptr;

resp->status = (int)strtol(buf, &endptr, 10);

	res = GEMINI_ERR_PROTOCOL;

	goto cleanup;

}

@@ -195,14 +195,25 @@ {

if (!resp) {

	return;

}

if (resp->fd != -1) {

	close(resp->fd);

}

SSL_free(resp->ssl);

SSL_CTX_free(resp->ssl_ctx);

free(resp->meta);

}

const char *

@@ -230,3 +241,26 @@ return "Protocol error";

}

assert(0);

}

+char *

+gemini_input_url(const char *url, const char *input)

+{

+cleanup:

+}

diff --git a/src/gmnic.c b/src/gmnic.c

index 014211dc3784ba3eadcf1885ef7bcf6fe84d8462..794b94ba2235757864acb81194b8de88220cc6da 100644

--- a/src/gmnic.c

+++ b/src/gmnic.c

@@ -26,10 +26,17 @@ OMIT_HEADERS,

	SHOW_HEADERS,

	ONLY_HEADERS,

};

int c;

	switch (c) {

	case '4':

		assert(0); // TODO

@@ -41,7 +48,21 @@ case 'C':

		assert(0); // TODO: Client certificates

		break;

	case 'd':

		break;

	case 'h':

		usage(argv[0]);

@@ -50,10 +71,14 @@ case 'L':

		assert(0); // TODO: Follow redirects

		break;

	case 'i':

		break;

	case 'I':

		break;

	default:

		fprintf(stderr, "fatal: unknown flag %c", c);

@@ -69,43 +94,105 @@

SSL_load_error_strings();

ERR_load_crypto_strings();

		if (n == -1) {

		}

				return 1;

			}

		}

	}

+next:

}

}

Proxy Information
Original URL
gemini://gmn.clttr.info:1965/sources/cgmnlm.git/commits/78eb57cad45aa27e83d3a5e78be0bb5ce4d631f7.patch
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
142.262268 milliseconds
Gemini-to-HTML Time
2.606022 milliseconds

This content has been proxied by September (3851b).