summaryrefslogtreecommitdiffstats
path: root/authfile.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-29 00:28:37 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-29 00:28:37 +0000
commitc1116608967d75af5466ad487b0fd587450e5c9f (patch)
tree4bd9d89e4aec53f5292d9918d19db86321c599a5 /authfile.c
parent89b0bd66e21f3af300c3df4e0e7ff2ecbda933c0 (diff)
- markus@cvs.openbsd.org 2001/03/26 23:12:42
[authfile.c] KNF
Diffstat (limited to 'authfile.c')
-rw-r--r--authfile.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/authfile.c b/authfile.c
index c867724d..e02b301f 100644
--- a/authfile.c
+++ b/authfile.c
@@ -36,7 +36,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: authfile.c,v 1.29 2001/03/26 08:07:07 markus Exp $");
+RCSID("$OpenBSD: authfile.c,v 1.30 2001/03/26 23:12:42 markus Exp $");
#include <openssl/err.h>
#include <openssl/evp.h>
@@ -185,14 +185,14 @@ key_save_private_pem(Key *key, const char *filename, const char *_passphrase,
return 0;
}
switch (key->type) {
- case KEY_DSA:
- success = PEM_write_DSAPrivateKey(fp, key->dsa,
- cipher, passphrase, len, NULL, NULL);
- break;
- case KEY_RSA:
- success = PEM_write_RSAPrivateKey(fp, key->rsa,
- cipher, passphrase, len, NULL, NULL);
- break;
+ case KEY_DSA:
+ success = PEM_write_DSAPrivateKey(fp, key->dsa,
+ cipher, passphrase, len, NULL, NULL);
+ break;
+ case KEY_RSA:
+ success = PEM_write_RSAPrivateKey(fp, key->rsa,
+ cipher, passphrase, len, NULL, NULL);
+ break;
}
fclose(fp);
return success;