~sircmpwn/gmni-devel

gmni: clear client certificate when none is required v1 PROPOSED

René Wagner: 1
 clear client certificate when none is required

 1 files changed, 2 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/gmni-devel/patches/26371/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gmni] clear client certificate when none is required Export this patch

Otherwise we end up using the client certificate
of a previous request and the current request will
fail with a SSL error 26.
---
closes ~sircmpwn/gmni#67

 src/client.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/client.c b/src/client.c
index 127a56c..0044122 100644
--- a/src/client.c
+++ b/src/client.c
@@ -187,6 +187,8 @@ gemini_request(const char *url, struct gemini_options *options,
				br_ecdsa_sign_asn1_get_default());
			break;
		}
	} else {
		br_ssl_client_set_client_certificate(resp->sc, NULL);
	}
	br_ssl_client_reset(resp->sc, host, 0);

-- 
2.33.1