search for: authenticationconnection

Displaying 10 results from an estimated 10 matches for "authenticationconnection".

2010 Jan 12
2
[patch] Automatically add keys to agent
...etrieving revision 1.70 diff -u -N -p sshconnect1.c --- sshconnect1.c 6 Nov 2006 21:25:28 -0000 1.70 +++ sshconnect1.c 11 Jan 2010 22:49:11 -0000 @@ -57,21 +57,15 @@ extern char *__progname; * authenticate using the agent. */ static int -try_agent_authentication(void) +try_agent_authentication(AuthenticationConnection *auth) { int type; char *comment; - AuthenticationConnection *auth; u_char response[16]; u_int i; Key *key; BIGNUM *challenge; - /* Get connection to the agent. */ - auth = ssh_get_authentication_connection(); - if (!auth) - return 0; - if ((challenge = BN_new()) == NULL) fatal...
2011 Apr 07
6
new option ssh-add -v to verify if key is loaded into the agent
Dear openssh developers In a shell script I need to verify if a key belonging to a given public key file is already loaded into the agent. To achieve this, I added a new option -v to ssh-add which does this verification. The patch bases on openssh v5.8p1. The regression test agent.sh was extended to test this new feature. Is there any chance for inclusion of attached patch? Cheers Konrad --
2001 Jul 29
1
add version 2 identities by default, too
...Debian package of OpenSSH: walters at space-ghost:/usr/src/ssh/openssh-2.9p2$ diff -u ssh-add.c~ ssh-add.c --- ssh-add.c~ Thu Apr 19 16:33:08 2001 +++ ssh-add.c Sat Jul 28 23:49:01 2001 @@ -182,12 +182,63 @@ printf("The agent has no identities.\n"); } +void +add_default_identities(AuthenticationConnection *ac, int deleting) +{ + char identity_name[1024]; + char dsa_name[1024]; + char rsa_name[1024]; + struct passwd *pw = getpwuid(getuid()); + snprintf(identity_name, sizeof identity_name, "%s/%s", pw->pw_dir, _PATH_SSH_CLIENT_IDENTITY); + snprintf(rsa_name, sizeof rsa_name, "%s/%s&q...
2001 Jan 07
1
[PATCH] Caching passphrase in ssh-add.
...================================ RCS file: /cvs/openssh_cvs/ssh-add.c,v retrieving revision 1.28 diff -u -r1.28 ssh-add.c --- ssh-add.c 2000/11/17 03:47:21 1.28 +++ ssh-add.c 2001/01/07 21:52:10 @@ -54,6 +54,8 @@ char *__progname; #endif +static char *last_passphrase = NULL; + void delete_file(AuthenticationConnection *ac, const char *filename) { @@ -172,6 +174,10 @@ /* At first, try empty passphrase */ private = key_new(type); success = load_private_key(filename, "", private, &comment); + if (!success && last_passphrase) { + /* Have passphrase from last key loaded */ + success = l...
2013 Jun 25
1
RFC: encrypted hostkeys patch
...tor.c +++ b/monitor.c @@ -97,6 +97,7 @@ #include "ssh2.h" #include "jpake.h" #include "roaming.h" +#include "authfd.h" #ifdef GSSAPI static Gssctxt *gsscontext = NULL; @@ -686,6 +687,8 @@ mm_answer_moduli(int sock, Buffer *m) return (0); } +extern AuthenticationConnection *auth_conn; + int mm_answer_sign(int sock, Buffer *m) { @@ -714,10 +717,16 @@ mm_answer_sign(int sock, Buffer *m) memcpy(session_id2, p, session_id2_len); } - if ((key = get_hostkey_by_index(keyid)) == NULL) + if ((key = get_hostkey_by_index(keyid)) != NULL) { + if (key_sign(key, &si...
2003 Sep 10
3
[PATCH] No extern declarations of optarg & co if getopt.h is available
.../ssh-add.c,v retrieving revision 1.74 diff -p -u -r1.74 ssh-add.c --- ssh-add.c 21 Aug 2003 23:34:41 -0000 1.74 +++ ssh-add.c 10 Sep 2003 18:59:00 -0000 @@ -313,8 +313,10 @@ usage(void) int main(int argc, char **argv) { +#ifndef HAVE_GETOPT_H extern char *optarg; extern int optind; +#endif AuthenticationConnection *ac = NULL; char *sc_reader_id = NULL; int i, ch, deleting = 0, ret = 0; Index: ssh-agent.c =================================================================== RCS file: /cvs/openssh_cvs/ssh-agent.c,v retrieving revision 1.122 diff -p -u -r1.122 ssh-agent.c --- ssh-agent.c 21 Aug 2003 23:34:41...
2000 Sep 09
0
2.2.0p1 PATCH: ssh/scp/slogin will invoke ssh-askpass
...ose(p[0]); - while (waitpid(pid, &status, 0) < 0) - if (errno != EINTR) - break; - if (len <= 1) - return xstrdup(""); - nl = strchr(buf, '\n'); - if (nl) - *nl = '\0'; - pass = xstrdup(buf); - memset(buf, 0, sizeof(buf)); - return pass; -} - void add_file(AuthenticationConnection *ac, const char *filename) { diff -U 3 -N -r ORIG/openssh-2.2.0p1/ssh.h openssh-2.2.0p1/ssh.h --- ORIG/openssh-2.2.0p1/ssh.h Tue Aug 22 20:46:25 2000 +++ openssh-2.2.0p1/ssh.h Sat Sep 9 01:10:07 2000 @@ -426,6 +426,12 @@ */ char *read_passphrase(const char *prompt, int from_stdin); +/* + *...
1999 Dec 10
2
[David Huggins-Daines <dhd@plcom.on.ca>] Bug#52414: ssh-add uses ssh-askpass, but ssh doesn't
...ose(p[0]); - while (waitpid(pid, &status, 0) < 0) - if (errno != EINTR) - break; - if (len <= 1) - return xstrdup(""); - nl = strchr(buf, '\n'); - if (nl) - *nl = '\0'; - pass = xstrdup(buf); - memset(buf, 0, sizeof(buf)); - return pass; -} - void add_file(AuthenticationConnection *ac, const char *filename) { diff -ur openssh-1.2pre16/ssh.c openssh-1.2pre16.patched/ssh.c --- openssh-1.2pre16/ssh.c Thu Dec 9 22:29:24 1999 +++ openssh-1.2pre16.patched/ssh.c Thu Dec 9 23:03:19 1999 @@ -81,6 +81,9 @@ /* Original real UID. */ uid_t original_real_uid; +/* Flag indicating wh...
2004 Oct 03
3
[PATCH] PreferAskpass in ssh_config
...#include "misc.h" +#include "readconf.h" /* argv0 */ extern char *__progname; @@ -68,6 +69,11 @@ /* we keep a cache of one passphrases */ static char *pass = NULL; + +Options options; + +uid_t original_real_uid; + static void clear_pass(void) { @@ -311,12 +317,30 @@ AuthenticationConnection *ac = NULL; char *sc_reader_id = NULL; int i, ch, deleting = 0, ret = 0; + char buf[256]; + struct passwd *pw; __progname = ssh_get_progname(argv[0]); init_rng(); seed_rng(); SSLeay_add_all_algorithms(); + + /* Read options */ + initialize_options(&options); + + pw = getpwuid(o...
2005 Jul 26
1
Linux in-kernel keys support
...ifdef SMARTCARD fprintf(stderr, " -s reader Add key in smartcard reader.\n"); fprintf(stderr, " -e reader Remove key in smartcard reader.\n"); @@ -307,7 +503,7 @@ main(int argc, char **argv) { extern char *optarg; - extern int optind; + extern int optind, opterr; AuthenticationConnection *ac = NULL; char *sc_reader_id = NULL; int i, ch, deleting = 0, ret = 0; @@ -318,13 +514,34 @@ SSLeay_add_all_algorithms(); - /* At first, get a connection to the authentication agent. */ +#ifdef HAVE_LIBKEYUTIL + /* At first, check if we are working on the kernel or agent keys */ + opter...