Skip unsupported ciphers in evp_test.
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
35313768c7
commit
33a89fa66c
@ -638,8 +638,14 @@ static int cipher_test_init(struct evp_test *t, const char *alg)
|
|||||||
const EVP_CIPHER *cipher;
|
const EVP_CIPHER *cipher;
|
||||||
struct cipher_data *cdat = t->data;
|
struct cipher_data *cdat = t->data;
|
||||||
cipher = EVP_get_cipherbyname(alg);
|
cipher = EVP_get_cipherbyname(alg);
|
||||||
if (!cipher)
|
if (!cipher) {
|
||||||
|
/* If alg has an OID assume disabled algorithm */
|
||||||
|
if (OBJ_sn2nid(alg) != NID_undef || OBJ_ln2nid(alg) != NID_undef) {
|
||||||
|
t->skip = 1;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
cdat = OPENSSL_malloc(sizeof(struct cipher_data));
|
cdat = OPENSSL_malloc(sizeof(struct cipher_data));
|
||||||
cdat->cipher = cipher;
|
cdat->cipher = cipher;
|
||||||
cdat->enc = -1;
|
cdat->enc = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user