mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-23 04:26:46 -04:00
Fix too many arguments in mbedtls_pk_verify_new
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
parent
0c787e3de8
commit
5be8511151
@ -41,7 +41,7 @@ static int x509_crt_verifycsr(const unsigned char *buf, size_t buflen)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (mbedtls_pk_verify_new(csr.sig_pk, NULL, &csr.pk,
|
||||
if (mbedtls_pk_verify_new(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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user