Displaying 1 result from an estimated 1 matches for "passphrase_again".
2013 May 29
2
Patch to discourage unencrypted key generation
...low. Let the beatings commence.
diff -ruN ssh-orig/ssh-keygen.c ssh/ssh-keygen.c
--- ssh-orig/ssh-keygen.c 2013-02-10 17:32:10.000000000 -0600
+++ ssh/ssh-keygen.c 2013-05-29 13:57:50.555791814 -0500
@@ -2585,6 +2585,23 @@
printf("Passphrases do not match. Try again.\n");
goto passphrase_again;
}
+ if (strcmp(passphrase1, "" ) == 0) {
+ char iknow[7];
+ printf("Empty passphrases are a potential security risk. \n" );
+ printf("Type \"I know\" to confirm that you want this: " );
+ fflush(stdout);
+
+ if (fgets(iknow, sizeof(iknow), std...