(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:
		| @@ -179,7 +179,12 @@ parse_rsa_private_key(hx509_context context, struct hx509_collector *c, | |||||||
| 	    return ENOMEM; | 	    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 | #define PKCS5_SALT_LEN 8 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand