Code tidy.
This commit is contained in:
parent
f13a71c66b
commit
a620626a33
@ -200,8 +200,7 @@ int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
|
|||||||
/* lets see if we recognise the encryption algorithm.
|
/* lets see if we recognise the encryption algorithm.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
cipher = EVP_get_cipherbyname(
|
cipher = EVP_get_cipherbyobj(pbe2->encryption->algorithm);
|
||||||
OBJ_nid2sn(OBJ_obj2nid(pbe2->encryption->algorithm)));
|
|
||||||
|
|
||||||
if(!cipher) {
|
if(!cipher) {
|
||||||
EVPerr(EVP_F_PKCS5_V2_PBE_KEYIVGEN,
|
EVPerr(EVP_F_PKCS5_V2_PBE_KEYIVGEN,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user