mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-25 02:02:03 +03:00
Remove additional calls to mbedtls_pk_verify_ext
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
@ -41,7 +41,7 @@ static int x509_crt_verifycsr(const unsigned char *buf, size_t buflen)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (mbedtls_pk_verify_ext(csr.sig_pk, NULL, &csr.pk,
|
||||
if (mbedtls_pk_verify_new(csr.sig_pk, NULL, &csr.pk,
|
||||
csr.sig_md, hash, mbedtls_md_get_size_from_type(csr.sig_md),
|
||||
csr.sig.p, csr.sig.len) != 0) {
|
||||
ret = MBEDTLS_ERR_X509_CERT_VERIFY_FAILED;
|
||||
|
Reference in New Issue
Block a user