summaryrefslogtreecommitdiff
path: root/authfile.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 14:00:31 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 14:00:31 +1100
commit3305f5591f7a1b17565a1f13683d0b20287130c3 (patch)
tree855f4406cc2809c2faf153af434a2b56d0ae0d3a /authfile.c
parent4662d3492f24cf1d7974db805215c801e50cffc3 (diff)
- deraadt@cvs.openbsd.org 2006/03/19 18:59:09
[authfile.c] whoever thought that break after return was a good idea needs to get their head examimed
Diffstat (limited to 'authfile.c')
-rw-r--r--authfile.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/authfile.c b/authfile.c
index d529c8340..55c66d1e3 100644
--- a/authfile.c
+++ b/authfile.c
@@ -213,12 +213,10 @@ key_save_private(Key *key, const char *filename, const char *passphrase,
213 case KEY_RSA1: 213 case KEY_RSA1:
214 return key_save_private_rsa1(key, filename, passphrase, 214 return key_save_private_rsa1(key, filename, passphrase,
215 comment); 215 comment);
216 break;
217 case KEY_DSA: 216 case KEY_DSA:
218 case KEY_RSA: 217 case KEY_RSA:
219 return key_save_private_pem(key, filename, passphrase, 218 return key_save_private_pem(key, filename, passphrase,
220 comment); 219 comment);
221 break;
222 default: 220 default:
223 break; 221 break;
224 } 222 }
@@ -556,13 +554,11 @@ key_load_private_type(int type, const char *filename, const char *passphrase,
556 return key_load_private_rsa1(fd, filename, passphrase, 554 return key_load_private_rsa1(fd, filename, passphrase,
557 commentp); 555 commentp);
558 /* closes fd */ 556 /* closes fd */
559 break;
560 case KEY_DSA: 557 case KEY_DSA:
561 case KEY_RSA: 558 case KEY_RSA:
562 case KEY_UNSPEC: 559 case KEY_UNSPEC:
563 return key_load_private_pem(fd, type, passphrase, commentp); 560 return key_load_private_pem(fd, type, passphrase, commentp);
564 /* closes fd */ 561 /* closes fd */
565 break;
566 default: 562 default:
567 close(fd); 563 close(fd);
568 break; 564 break;