mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
reverted enum in pk_verify_new
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
@@ -40,7 +40,7 @@ static int x509_crt_verifycsr(const unsigned char *buf, size_t buflen)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (mbedtls_pk_verify_new((mbedtls_pk_sigalg_t) csr.sig_pk, &csr.pk,
|
||||
if (mbedtls_pk_verify_new((mbedtls_pk_type_t) csr.sig_pk, &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