diff options
Diffstat (limited to 'engines/e_4758cca.c')
-rw-r--r-- | engines/e_4758cca.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/e_4758cca.c b/engines/e_4758cca.c index 5f771986cf..3b593c79c5 100644 --- a/engines/e_4758cca.c +++ b/engines/e_4758cca.c @@ -641,7 +641,7 @@ static int cca_rsa_verify(int type, const unsigned char *m, return 0; } - if (!algorithm.algorithm->length) { + if (!OBJ_length(algorithm.algorithm)) { CCA4758err(CCA4758_F_CCA_RSA_VERIFY, CCA4758_R_ASN1_OID_UNKNOWN_FOR_MD); return 0; @@ -754,7 +754,7 @@ static int cca_rsa_sign(int type, const unsigned char *m, unsigned int m_len, return 0; } - if (!algorithm.algorithm->length) { + if (!OBJ_length(algorithm.algorithm)) { CCA4758err(CCA4758_F_CCA_RSA_SIGN, CCA4758_R_ASN1_OID_UNKNOWN_FOR_MD); return 0; |