summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-03-26 23:12:43 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-03-26 23:12:43 +0000
commit80fc4e2f1398e92c610189f0dcc887d91869c474 (patch)
treed2486653e1c03de9cd7d8eee491c953f2bda33e5 /usr.bin
parent77f83bdd4593c10acc43f81dc1de19ed94041718 (diff)
KNF
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/authfile.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/ssh/authfile.c b/usr.bin/ssh/authfile.c
index 652329f65e3..dec79b5cf59 100644
--- a/usr.bin/ssh/authfile.c
+++ b/usr.bin/ssh/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;