View | Details | Raw Unified | Return to bug 1550
Collapse All | Expand All

(-)authfile.c (-1 / +1 lines)
Lines 182-188 key_save_private_pem(Key *key, const cha Link Here
182
	int success = 0;
182
	int success = 0;
183
	int len = strlen(_passphrase);
183
	int len = strlen(_passphrase);
184
	u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL;
184
	u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL;
185
	const EVP_CIPHER *cipher = (len > 0) ? EVP_des_ede3_cbc() : NULL;
185
	const EVP_CIPHER *cipher = (len > 0) ? EVP_aes_256_cbc() : NULL;
186
186
187
	if (len > 0 && len <= 4) {
187
	if (len > 0 && len <= 4) {
188
		error("passphrase too short: have %d bytes, need > 4", len);
188
		error("passphrase too short: have %d bytes, need > 4", len);

Return to bug 1550