The unified diff between revisions [7f568ec9..] and [83d9a25e..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'keyimport.c'

#
#
# patch "keyimport.c"
#  from [d968616a841159390ced30293918a5df06acf3ab]
#    to [38a61bdea3196db5ff2a57fd389236948142b4ef]
#
============================================================
--- keyimport.c	d968616a841159390ced30293918a5df06acf3ab
+++ keyimport.c	38a61bdea3196db5ff2a57fd389236948142b4ef
@@ -108,13 +108,10 @@ static sign_key *dropbear_read(const cha
 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*fil
 	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;