(parse_rsa_private_key): use EVP_get_cipherbyname

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17135 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-21 15:00:10 +00:00
parent 1cb767da13
commit f4e2e10360

View File

@@ -179,7 +179,12 @@ parse_rsa_private_key(hx509_context context, struct hx509_collector *c,
return ENOMEM;
}
cipher = EVP_aes_256_cbc();
cipher = EVP_get_cipherbyname(type);
if (cipher == NULL) {
free(type);
free(ivdata);
return EINVAL;
}
#define PKCS5_SALT_LEN 8