summaryrefslogtreecommitdiffhomepage
path: root/keyimport.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-17 11:14:13 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-17 11:14:13 +0000
commitee23b01f0b442ad97022af21f4435597b8fd354a (patch)
tree598d98ce0a6f9ba0b64739ea995cdf976f455026 /keyimport.c
parent3cacc54b787e8ff933181af4ca4b41866ef2b1ce (diff)
Some small fixes for unused vars, and old messages
--HG-- extra : convert_revision : 83d9a25ee973ab65fa64dcf8595838b160c21663
Diffstat (limited to 'keyimport.c')
-rw-r--r--keyimport.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/keyimport.c b/keyimport.c
index 32018b1..9f2305d 100644
--- a/keyimport.c
+++ b/keyimport.c
@@ -108,13 +108,10 @@ int import_write(const char *filename, sign_key *key, char *passphrase,
static sign_key *dropbear_read(const char* filename) {
buffer * buf = NULL;
- int len, maxlen;
- FILE *fp = NULL;
sign_key *ret = NULL;
int type;
buf = buf_new(MAX_PRIVKEY_SIZE);
- /* buf_readfile knows about "-" */
if (buf_readfile(buf, filename) == DROPBEAR_FAILURE) {
goto error;
}
@@ -163,11 +160,7 @@ static int dropbear_write(const char*filename, sign_key * key) {
buf = buf_new(MAX_PRIVKEY_SIZE);
buf_put_priv_key(buf, key, keytype);
- if (strlen(filename) == 1 && filename[0] == '-') {
- fp = stdout;
- } else {
- fp = fopen(filename, "w");
- }
+ fp = fopen(filename, "w");
if (!fp) {
ret = 0;
goto out;