]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2009/10/22 22:26:13
authordtucker <dtucker>
Sat, 24 Oct 2009 00:46:43 +0000 (00:46 +0000)
committerdtucker <dtucker>
Sat, 24 Oct 2009 00:46:43 +0000 (00:46 +0000)
     [authfile.c]
     switch from 3DES to AES-128 for encryption of passphrase-protected
     SSH protocol 2 private keys; ok several

ChangeLog
authfile.c

index 34351d4742df440f3ee0dd226c473b96af75e83d..5ec1345c30bfaf1b3946b88e435b5d294d4d229d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      few remaining ".Tn UNIX" macros with ".Ux" ones.
      pointed out by ratchov@, thanks!
      ok jmc@
+   - djm@cvs.openbsd.org 2009/10/22 22:26:13
+     [authfile.c]
+     switch from 3DES to AES-128 for encryption of passphrase-protected
+     SSH protocol 2 private keys; ok several
 
 20091011
  - (dtucker) [configure.ac sftp-client.c] Remove the gyrations required for
index 735c6478096495fa392c74d1a1cdb8f73a405f90..22df6c64b3e7c5ce7f15cced080d052098725f69 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfile.c,v 1.76 2006/08/03 03:34:41 deraadt Exp $ */
+/* $OpenBSD: authfile.c,v 1.77 2009/10/22 22:26:13 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -184,7 +184,7 @@ key_save_private_pem(Key *key, const char *filename, const char *_passphrase,
        int success = 0;
        int len = strlen(_passphrase);
        u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL;
-       const EVP_CIPHER *cipher = (len > 0) ? EVP_des_ede3_cbc() : NULL;
+       const EVP_CIPHER *cipher = (len > 0) ? EVP_aes_128_cbc() : NULL;
 
        if (len > 0 && len <= 4) {
                error("passphrase too short: have %d bytes, need > 4", len);
This page took 0.042843 seconds and 5 git commands to generate.