diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-02-26 18:09:42 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-02-26 18:09:42 +0000 |
commit | 90fd814f90a5733584d8c2d877924469ac39d819 (patch) | |
tree | 900e828038a9ff6af55bde33c1137e1b37e61b6c /authfile.c | |
parent | e45a2cb2b7da40f81d4dced5dcbd12a23fefd833 (diff) |
- markus@cvs.openbsd.org 2002/02/24 19:14:59
[auth2.c authfd.c authfd.h authfile.c kexdh.c kexgex.c key.c key.h
ssh-dss.c ssh-dss.h ssh-keygen.c ssh-rsa.c ssh-rsa.h sshconnect2.c]
signed vs. unsigned: make size arguments u_int, ok stevesk@
Diffstat (limited to 'authfile.c')
-rw-r--r-- | authfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/authfile.c b/authfile.c index e35714e93..50ae9aa78 100644 --- a/authfile.c +++ b/authfile.c | |||
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "includes.h" | 38 | #include "includes.h" |
39 | RCSID("$OpenBSD: authfile.c,v 1.46 2002/02/14 23:41:01 markus Exp $"); | 39 | RCSID("$OpenBSD: authfile.c,v 1.47 2002/02/24 19:14:59 markus Exp $"); |
40 | 40 | ||
41 | #include <openssl/err.h> | 41 | #include <openssl/err.h> |
42 | #include <openssl/evp.h> | 42 | #include <openssl/evp.h> |
@@ -168,7 +168,7 @@ key_save_private_pem(Key *key, const char *filename, const char *_passphrase, | |||
168 | int fd; | 168 | int fd; |
169 | int success = 0; | 169 | int success = 0; |
170 | int len = strlen(_passphrase); | 170 | int len = strlen(_passphrase); |
171 | char *passphrase = (len > 0) ? (char *)_passphrase : NULL; | 171 | u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL; |
172 | EVP_CIPHER *cipher = (len > 0) ? EVP_des_ede3_cbc() : NULL; | 172 | EVP_CIPHER *cipher = (len > 0) ? EVP_des_ede3_cbc() : NULL; |
173 | 173 | ||
174 | if (len > 0 && len <= 4) { | 174 | if (len > 0 && len <= 4) { |