cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit e8da1ed7a88c05e28f6cb790d9a2cb80fe79879f
parent dcacb540dde3405480da29e660adea1b29f5d066
Author: René Wagner <rwa@clttr.info>
Date:   Wed, 10 Nov 2021 18:14:16 +0100

clear client certificate when none is required

Otherwise we end up using the client certificate
of a previous request and the current request will
fail with a SSL error 26.

Diffstat:
Msrc/client.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/client.c b/src/client.c @@ -187,6 +187,9 @@ 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);