diff --git a/configure b/configure

index 7b55a2580018cc69b2f52c9bc53832cc9faadc4f..6abccdd18d0b85e4b2d4b527d49727d360dec5c3 100755

--- a/configure

+++ b/configure

@@ -15,6 +15,7 @@ }

cgmnlm() {

genrules cgmnlm \

	src/client.c \

	src/escape.c \

	src/gmnlm.c \

@@ -26,6 +27,7 @@ }

libgmni_a() {

genrules libgmni.a \

	src/client.c \

	src/escape.c \

	src/tofu.c \

diff --git a/include/gmni/certs.h b/include/gmni/certs.h

index 22e226d6b4252dddd8526970cec0a947f12242d1..53b8aad27fa50649ddfdacbd08724d5d0b033120 100644

--- a/include/gmni/certs.h

+++ b/include/gmni/certs.h

@@ -20,7 +20,7 @@ };

unsigned char data[];

};

-// Returns nonzero on failure and sets errno

+// Returns nonzero on failure and sets errno. Closes both files.

int gmni_ccert_load(struct gmni_client_certificate *cert,

	FILE *certin, FILE *skin);

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

index aeb0c834d49c799fcdae54acfcbd3925dcedd392..12a6c971b7ae7d18bcdafc3b2b81f55539340095 100644

--- a/src/gmnlm.c

+++ b/src/gmnlm.c

@@ -4,6 +4,7 @@ #include <ctype.h>

#include <errno.h>

#include <fcntl.h>

#include <getopt.h>

+#include <gmni/certs.h>

#include <gmni/gmni.h>

#include <gmni/tofu.h>

#include <gmni/url.h>

@@ -434,13 +435,50 @@ {

int nredir = 0;

bool requesting = true;

enum gemini_result res;

	CURLUcode uc = curl_url_get(browser->url,

	if (strcmp(scheme, "file") == 0) {

		requesting = false;

		char *path;

@@ -475,9 +513,9 @@ free(path);

		resp->status = GEMINI_STATUS_SUCCESS;

		resp->fd = fd;

		resp->sc = NULL;

	}

	res = gemini_request(browser->plain_url, &browser->opts,

			&browser->tofu, resp);

@@ -519,7 +557,19 @@ }

		set_url(browser, resp->meta, NULL);

		break;

	case GEMINI_STATUS_CLASS_CLIENT_CERTIFICATE_REQUIRED:

	case GEMINI_STATUS_CLASS_TEMPORARY_FAILURE:

	case GEMINI_STATUS_CLASS_PERMANENT_FAILURE:

		requesting = false;

@@ -529,7 +579,7 @@ "TEMPORARY FAILURE" : "PERMANENT FAILURE",

			resp->status, resp->meta);

		break;

	case GEMINI_STATUS_CLASS_SUCCESS:

	}

	if (requesting) {

@@ -537,6 +587,11 @@ gemini_response_finish(resp);

	}

}

+out:

return res;

}

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

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