diff options
author | Damien Miller <djm@mindrot.org> | 1999-12-06 11:47:28 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-12-06 11:47:28 +1100 |
commit | aae6c614da614eb10ced16505f35410671c95d9d (patch) | |
tree | 441e578781d38e7de4c5f609a4f86695d937e640 /ssh-add.c | |
parent | dc33fc3910552c82518503b581efc1a51192fa76 (diff) |
- Merged OpenBSD CVS changes:
- [auth-krb4.c auth-passwd.c auth-skey.c ssh.
move skey-auth from auth-passwd.c to auth-s
- [auth-rsa.c]
warn only about mismatch if key is _used_
warn about keysize-mismatch with log() not
channels.c readconf.c readconf.h ssh.c ssh.
ports are u_short
- [hostfile.c]
indent, shorter warning
- [nchan.c]
use error() for internal errors
- [packet.c]
set loglevel for SSH_MSG_DISCONNECT to log(
serverloop.c
indent
- [ssh-add.1 ssh-add.c ssh.h]
document , reasonable default
- [ssh.1]
CheckHostIP is not available for connects v
- [sshconnect.c]
typo
easier to read client code for passwd and s
turn of checkhostip for proxy connects, sin
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -7,7 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "includes.h" | 9 | #include "includes.h" |
10 | RCSID("$Id: ssh-add.c,v 1.15 1999/11/25 01:31:26 damien Exp $"); | 10 | RCSID("$Id: ssh-add.c,v 1.16 1999/12/06 00:47:29 damien Exp $"); |
11 | 11 | ||
12 | #include "rsa.h" | 12 | #include "rsa.h" |
13 | #include "ssh.h" | 13 | #include "ssh.h" |
@@ -106,8 +106,12 @@ add_file(AuthenticationConnection *ac, const char *filename) | |||
106 | } | 106 | } |
107 | RSA_free(public_key); | 107 | RSA_free(public_key); |
108 | 108 | ||
109 | if (!interactive && getenv("DISPLAY")) | 109 | if (!interactive && getenv("DISPLAY")) { |
110 | askpass = getenv("SSH_ASKPASS"); | 110 | if (getenv(SSH_ASKPASS_ENV)) |
111 | askpass = getenv(SSH_ASKPASS_ENV); | ||
112 | else | ||
113 | askpass = SSH_ASKPASS_DEFAULT; | ||
114 | } | ||
111 | 115 | ||
112 | /* At first, try empty passphrase */ | 116 | /* At first, try empty passphrase */ |
113 | success = load_private_key(filename, "", key, &comment); | 117 | success = load_private_key(filename, "", key, &comment); |