[key.c]
     better debug3 message
This commit is contained in:
Damien Miller 2003-02-24 11:54:57 +11:00
parent e8cea9e755
commit 386f1f3e6c
2 changed files with 7 additions and 4 deletions

View File

@ -32,6 +32,9 @@
[sshpty.c] [sshpty.c]
don't call error() for readonly /dev; from soekris list; ok mcbride, don't call error() for readonly /dev; from soekris list; ok mcbride,
henning, deraadt. henning, deraadt.
- markus@cvs.openbsd.org 2003/02/04 09:32:08
[key.c]
better debug3 message
20030211 20030211
- (djm) Cygwin needs libcrypt too. Patch from vinschen@redhat.com - (djm) Cygwin needs libcrypt too. Patch from vinschen@redhat.com
@ -1132,4 +1135,4 @@
save auth method before monitor_reset_key_state(); bugzilla bug #284; save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@ ok provos@
$Id: ChangeLog,v 1.2601 2003/02/24 00:54:10 djm Exp $ $Id: ChangeLog,v 1.2602 2003/02/24 00:54:57 djm Exp $

6
key.c
View File

@ -32,7 +32,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: key.c,v 1.49 2002/09/09 14:54:14 markus Exp $"); RCSID("$OpenBSD: key.c,v 1.50 2003/02/04 09:32:08 markus Exp $");
#include <openssl/evp.h> #include <openssl/evp.h>
@ -410,14 +410,14 @@ key_read(Key *ret, char **cpp)
case KEY_DSA: case KEY_DSA:
space = strchr(cp, ' '); space = strchr(cp, ' ');
if (space == NULL) { if (space == NULL) {
debug3("key_read: no space"); debug3("key_read: missing whitespace");
return -1; return -1;
} }
*space = '\0'; *space = '\0';
type = key_type_from_name(cp); type = key_type_from_name(cp);
*space = ' '; *space = ' ';
if (type == KEY_UNSPEC) { if (type == KEY_UNSPEC) {
debug3("key_read: no key found"); debug3("key_read: missing keytype");
return -1; return -1;
} }
cp = space+1; cp = space+1;