Skip to content

Commit f6bf05b

Browse files
syzzeralonbl
authored andcommitted
mbedtls: fix __pkcs11_crypto_mbedtls_cerificate_is_issuer()
Entire branch is missing if certificate is issuer. Signed-off-by: Steffan Karger <[email protected]>
1 parent 1e407c4 commit f6bf05b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ $Id$
55

66
????-??-?? - Version 1.21
77

8+
* mbedtls: fix missing logic if issur certificate, thanks to Steffan Karger
89

910
2016-12-08 - Version 1.20
1011

lib/_pkcs11h-crypto-mbedtls.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ __pkcs11h_crypto_mbedtls_certificate_is_issuer (
197197
}
198198

199199
if ( 0 == x509_crt_verify(&x509_cert, &x509_issuer, NULL, NULL,
200-
&verify_flags, NULL, NULL ))
200+
&verify_flags, NULL, NULL )) {
201+
is_issuer = TRUE;
202+
}
201203

202204
cleanup:
203205
x509_crt_free(&x509_cert);

0 commit comments

Comments
 (0)