diff options
Diffstat (limited to 'crypto/cms/cms_ec.c')
-rw-r--r-- | crypto/cms/cms_ec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/cms/cms_ec.c b/crypto/cms/cms_ec.c index 5dac7f0683..8cb41dfdef 100644 --- a/crypto/cms/cms_ec.c +++ b/crypto/cms/cms_ec.c @@ -46,13 +46,13 @@ static EVP_PKEY *pkey_type2param(int ptype, const void *pval, groupname = OBJ_nid2sn(OBJ_obj2nid(poid)); if (groupname == NULL || !EVP_PKEY_CTX_set_group_name(pctx, groupname)) { - CMSerr(0, CMS_R_DECODE_ERROR); + ERR_raise(ERR_LIB_CMS, CMS_R_DECODE_ERROR); goto err; } if (EVP_PKEY_paramgen(pctx, &pkey) <= 0) goto err; } else { - CMSerr(0, CMS_R_DECODE_ERROR); + ERR_raise(ERR_LIB_CMS, CMS_R_DECODE_ERROR); goto err; } @@ -166,7 +166,7 @@ static int ecdh_cms_set_shared_info(EVP_PKEY_CTX *pctx, CMS_RecipientInfo *ri) return 0; if (!ecdh_cms_set_kdf_param(pctx, OBJ_obj2nid(alg->algorithm))) { - CMSerr(0, CMS_R_KDF_PARAMETER_ERROR); + ERR_raise(ERR_LIB_CMS, CMS_R_KDF_PARAMETER_ERROR); return 0; } @@ -229,13 +229,13 @@ static int ecdh_cms_decrypt(CMS_RecipientInfo *ri) if (alg == NULL || pubkey == NULL) return 0; if (!ecdh_cms_set_peerkey(pctx, alg, pubkey)) { - CMSerr(0, CMS_R_PEER_KEY_ERROR); + ERR_raise(ERR_LIB_CMS, CMS_R_PEER_KEY_ERROR); return 0; } } /* Set ECDH derivation parameters and initialise unwrap context */ if (!ecdh_cms_set_shared_info(pctx, ri)) { - CMSerr(0, CMS_R_SHARED_INFO_ERROR); + ERR_raise(ERR_LIB_CMS, CMS_R_SHARED_INFO_ERROR); return 0; } return 1; @@ -381,7 +381,7 @@ int cms_ecdh_envelope(CMS_RecipientInfo *ri, int decrypt) if (decrypt == 0) return ecdh_cms_encrypt(ri); - CMSerr(0, CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE); + ERR_raise(ERR_LIB_CMS, CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE); return 0; } #endif |