summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--authfile.c18
2 files changed, 13 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b6bf3987..41ea13fba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
3 - stevesk@cvs.openbsd.org 2001/03/26 15:47:59 3 - stevesk@cvs.openbsd.org 2001/03/26 15:47:59
4 [ssh.1] 4 [ssh.1]
5 document more defaults; misc. cleanup. ok markus@ 5 document more defaults; misc. cleanup. ok markus@
6 - markus@cvs.openbsd.org 2001/03/26 23:12:42
7 [authfile.c]
8 KNF
6 9
720010328 1020010328
8 - (djm) Reorder tests and library inclusion for Krb4/AFS to try to 11 - (djm) Reorder tests and library inclusion for Krb4/AFS to try to
@@ -4741,4 +4744,4 @@
4741 - Wrote replacements for strlcpy and mkdtemp 4744 - Wrote replacements for strlcpy and mkdtemp
4742 - Released 1.0pre1 4745 - Released 1.0pre1
4743 4746
4744$Id: ChangeLog,v 1.1026 2001/03/29 00:27:11 mouring Exp $ 4747$Id: ChangeLog,v 1.1027 2001/03/29 00:28:37 mouring Exp $
diff --git a/authfile.c b/authfile.c
index c867724db..e02b301fd 100644
--- a/authfile.c
+++ b/authfile.c
@@ -36,7 +36,7 @@
36 */ 36 */
37 37
38#include "includes.h" 38#include "includes.h"
39RCSID("$OpenBSD: authfile.c,v 1.29 2001/03/26 08:07:07 markus Exp $"); 39RCSID("$OpenBSD: authfile.c,v 1.30 2001/03/26 23:12:42 markus Exp $");
40 40
41#include <openssl/err.h> 41#include <openssl/err.h>
42#include <openssl/evp.h> 42#include <openssl/evp.h>
@@ -185,14 +185,14 @@ key_save_private_pem(Key *key, const char *filename, const char *_passphrase,
185 return 0; 185 return 0;
186 } 186 }
187 switch (key->type) { 187 switch (key->type) {
188 case KEY_DSA: 188 case KEY_DSA:
189 success = PEM_write_DSAPrivateKey(fp, key->dsa, 189 success = PEM_write_DSAPrivateKey(fp, key->dsa,
190 cipher, passphrase, len, NULL, NULL); 190 cipher, passphrase, len, NULL, NULL);
191 break; 191 break;
192 case KEY_RSA: 192 case KEY_RSA:
193 success = PEM_write_RSAPrivateKey(fp, key->rsa, 193 success = PEM_write_RSAPrivateKey(fp, key->rsa,
194 cipher, passphrase, len, NULL, NULL); 194 cipher, passphrase, len, NULL, NULL);
195 break; 195 break;
196 } 196 }
197 fclose(fp); 197 fclose(fp);
198 return success; 198 return success;