mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
Add sigalg types to x509_crt.c
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
parent
1c118a564d
commit
8e832b6594
@ -2126,7 +2126,7 @@ static int x509_crt_check_signature(const mbedtls_x509_crt *child,
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||
if (rs_ctx != NULL && child->sig_pk == MBEDTLS_PK_ECDSA) {
|
||||
if (rs_ctx != NULL && child->sig_pk == MBEDTLS_PK_SIGALG_ECDSA) {
|
||||
return mbedtls_pk_verify_restartable(&parent->pk,
|
||||
child->sig_md, hash, hash_len,
|
||||
child->sig.p, child->sig.len, &rs_ctx->pk);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user