mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
Support hybrid ECDSA / RSA certificate loading
This commit is contained in:
parent
fe881982b5
commit
c002e4ba76
1 changed files with 3 additions and 1 deletions
|
@ -680,7 +680,9 @@ static void InternCertificate(mbedtls_x509_crt *cert, mbedtls_x509_crt *prev) {
|
|||
}
|
||||
for (i = 0; i < certs.n; ++i) {
|
||||
if (!certs.p[i].cert) continue;
|
||||
if (!mbedtls_x509_name_cmp(&cert->subject, &certs.p[i].cert->subject)) {
|
||||
if (mbedtls_pk_get_type(&cert->pk) ==
|
||||
mbedtls_pk_get_type(&certs.p[i].cert->pk) &&
|
||||
!mbedtls_x509_name_cmp(&cert->subject, &certs.p[i].cert->subject)) {
|
||||
WARNF("certificate subject name %`'s is already loaded",
|
||||
gc(FormatX509Name(&cert->subject)));
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue