- dtucker@cvs.openbsd.org 2010/01/12 00:16:47
[authfile.c] Fix bug introduced in r1.78 (incorrect brace location) that broke key auth. Patch from joachim joachimschipper nl.
This commit is contained in:
parent
d04758dc4c
commit
69c01b1c4a
|
@ -15,6 +15,10 @@
|
||||||
[ssh-keygen.c]
|
[ssh-keygen.c]
|
||||||
when converting keys, truncate key comments at 72 chars as per RFC4716;
|
when converting keys, truncate key comments at 72 chars as per RFC4716;
|
||||||
bz#1630 reported by tj AT castaglia.org; ok markus@
|
bz#1630 reported by tj AT castaglia.org; ok markus@
|
||||||
|
- dtucker@cvs.openbsd.org 2010/01/12 00:16:47
|
||||||
|
[authfile.c]
|
||||||
|
Fix bug introduced in r1.78 (incorrect brace location) that broke key auth.
|
||||||
|
Patch from joachim joachimschipper nl.
|
||||||
|
|
||||||
20100110
|
20100110
|
||||||
- (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c]
|
- (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: authfile.c,v 1.78 2010/01/11 04:46:45 dtucker Exp $ */
|
/* $OpenBSD: authfile.c,v 1.79 2010/01/12 00:16:47 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
|
@ -564,8 +564,8 @@ key_load_private_type(int type, const char *filename, const char *passphrase,
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
if (perm_ok != NULL)
|
if (perm_ok != NULL)
|
||||||
*perm_ok = 0;
|
*perm_ok = 0;
|
||||||
}
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
if (!key_perm_ok(fd, filename)) {
|
if (!key_perm_ok(fd, filename)) {
|
||||||
if (perm_ok != NULL)
|
if (perm_ok != NULL)
|
||||||
*perm_ok = 0;
|
*perm_ok = 0;
|
||||||
|
|
Loading…
Reference in New Issue