add options to skipping KeyUsage check
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24197 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -567,9 +567,11 @@ hx509_cms_envelope_1(hx509_context context,
|
|||||||
if (encryption_type == NULL)
|
if (encryption_type == NULL)
|
||||||
encryption_type = oid_id_aes_256_cbc();
|
encryption_type = oid_id_aes_256_cbc();
|
||||||
|
|
||||||
|
if ((flags & HX509_CMS_EV_NO_KU_CHECK) == 0) {
|
||||||
ret = _hx509_check_key_usage(context, cert, 1 << 2, TRUE);
|
ret = _hx509_check_key_usage(context, cert, 1 << 2, TRUE);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
ret = hx509_crypto_init(context, NULL, encryption_type, &crypto);
|
ret = hx509_crypto_init(context, NULL, encryption_type, &crypto);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Reference in New Issue
Block a user