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:
parent
78fe3fbb2b
commit
fcc5c1d374
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue