Skip to content

Commit

Permalink
Merge pull request #230 from fscheiner/myproxy-new-private-key-cipher
Browse files Browse the repository at this point in the history
MyProxy: change private key cipher to EVP_aes_256_cbc()
  • Loading branch information
fscheiner authored Jul 22, 2024
2 parents 7f092bf + 456e057 commit f37c5ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions myproxy/source/ssl_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#define EVP_PKEY_id(k) (k)->type
#endif

#ifndef MYPROXY_PRIVKEY_CIPHER
#define MYPROXY_PRIVKEY_CIPHER() EVP_aes_256_cbc()
#endif

/**********************************************************************
*
* Constants
Expand Down Expand Up @@ -808,8 +812,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 = MYPROXY_PRIVKEY_CIPHER();
pass_phrase_len = strlen(pass_phrase);
}

Expand Down Expand Up @@ -1127,8 +1130,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 = MYPROXY_PRIVKEY_CIPHER();
pass_phrase_len = strlen(pass_phrase);
}

Expand Down

0 comments on commit f37c5ce

Please sign in to comment.