Skip to content

Commit

Permalink
xmlsec-nss: enable self signed certs (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsh123 authored Mar 11, 2023
1 parent a8fed76 commit f432bb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nss/x509vfy.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ xmlSecNssX509StoreFindChildCert(CERTCertificate* cert, CERTCertList* certs) {
xmlSecAssert2(certs != NULL, NULL);

for (cur = CERT_LIST_HEAD(certs); !CERT_LIST_END(cur, certs); cur = CERT_LIST_NEXT(cur)) {
/* allow self signed certs */
if(cur->cert == cert) {
continue;
}
if (SECITEM_CompareItem(&(cur->cert->derIssuer), &(cert->derSubject)) == SECEqual) {
return(cur->cert);
}
Expand Down

0 comments on commit f432bb7

Please sign in to comment.