1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-05-07 21:56:03 +02:00

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.
This commit is contained in:
René Wagner 2021-11-10 18:20:45 +01:00 committed by Drew DeVault
parent 78fe3fbb2b
commit fcc5c1d374

View File

@ -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);