mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- markus@cvs.openbsd.org 2001/03/10 12:48:27
[sshconnect2.c] ignore nonexisting private keys; report rjmooney@mediaone.net
This commit is contained in:
parent
5f5419a6a2
commit
329782e3db
@ -1,3 +1,9 @@
|
|||||||
|
20010311
|
||||||
|
- OpenBSD CVS Sync
|
||||||
|
- markus@cvs.openbsd.org 2001/03/10 12:48:27
|
||||||
|
[sshconnect2.c]
|
||||||
|
ignore nonexisting private keys; report rjmooney@mediaone.net
|
||||||
|
|
||||||
20010310
|
20010310
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
- deraadt@cvs.openbsd.org 2001/03/09 03:14:39
|
- deraadt@cvs.openbsd.org 2001/03/09 03:14:39
|
||||||
@ -4468,4 +4474,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.933 2001/03/09 19:48:37 mouring Exp $
|
$Id: ChangeLog,v 1.934 2001/03/10 17:08:59 mouring Exp $
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: sshconnect2.c,v 1.51 2001/03/08 21:42:33 markus Exp $");
|
RCSID("$OpenBSD: sshconnect2.c,v 1.52 2001/03/10 12:48:27 markus Exp $");
|
||||||
|
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
@ -895,7 +895,12 @@ load_identity_file(char *filename)
|
|||||||
Key *private;
|
Key *private;
|
||||||
char prompt[300], *passphrase;
|
char prompt[300], *passphrase;
|
||||||
int success = 0, quit, i;
|
int success = 0, quit, i;
|
||||||
|
struct stat st;
|
||||||
|
|
||||||
|
if (stat(filename, &st) < 0) {
|
||||||
|
debug3("no such identity: %s", filename);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
private = key_new(KEY_UNSPEC);
|
private = key_new(KEY_UNSPEC);
|
||||||
if (!load_private_key(filename, "", private, NULL)) {
|
if (!load_private_key(filename, "", private, NULL)) {
|
||||||
if (options.batch_mode) {
|
if (options.batch_mode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user