*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-add.c,v 1.37 2001/05/02 16:41:20 markus Exp $");
+RCSID("$OpenBSD: ssh-add.c,v 1.40 2001/06/24 05:35:33 markus Exp $");
#include <openssl/evp.h>
/* we keep a cache of one passphrases */
static char *pass = NULL;
-void
+static void
clear_pass(void)
{
if (pass) {
}
}
-void
+static void
delete_file(AuthenticationConnection *ac, const char *filename)
{
Key *public;
}
/* Send a request to remove all identities. */
-void
+static void
delete_all(AuthenticationConnection *ac)
{
int success = 1;
fprintf(stderr, "Failed to remove all identities.\n");
}
-void
+static void
add_file(AuthenticationConnection *ac, const char *filename)
{
struct stat st;
if (private == NULL) {
/* clear passphrase since it did not work */
clear_pass();
- printf("Need passphrase for %.200s\n", filename);
snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ",
comment);
for (;;) {
- pass = read_passphrase(msg, 1);
+ pass = read_passphrase(msg, RP_ALLOW_STDIN);
if (strcmp(pass, "") == 0) {
clear_pass();
xfree(comment);
key_free(private);
}
-void
+static void
list_identities(AuthenticationConnection *ac, int do_fp)
{
Key *key;