~sircmpwn/gmni

fcc5c1d374c68807a535018c2fc70c48d576f6bf — RenĂ© Wagner 3 years ago 78fe3fb
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.
1 files changed, 2 insertions(+), 0 deletions(-)

M src/client.c
M src/client.c => src/client.c +2 -0
@@ 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);