Skip to content

Commit

Permalink
MyProxy: change private key cipher to EVP_aes_256_cbc()
Browse files Browse the repository at this point in the history
As per #229 MyProxy still used an old cipher for encrypting private keys.
Changes courtesy of Mischa Salle (@msalle).

Fixes #229.
  • Loading branch information
fscheiner committed Jul 21, 2024
1 parent 7f092bf commit 2d2f501
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions myproxy/source/ssl_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,7 @@ ssl_private_key_store_to_file(SSL_CREDENTIALS *creds,
else
{
/* Encrypt with pass phrase */
/* XXX This is my best guess at a cipher */
cipher = EVP_des_ede3_cbc();
cipher = EVP_aes_256_cbc();
pass_phrase_len = strlen(pass_phrase);
}

Expand Down Expand Up @@ -1127,8 +1126,7 @@ ssl_proxy_to_pem(SSL_CREDENTIALS *creds,
else
{
/* Encrypt with pass phrase */
/* XXX This is my best guess at a cipher */
cipher = EVP_des_ede3_cbc();
cipher = EVP_aes_256_cbc();
pass_phrase_len = strlen(pass_phrase);
}

Expand Down

0 comments on commit 2d2f501

Please sign in to comment.