version 1.49, 2002/09/09 14:54:14 |
version 1.49.2.1, 2003/04/01 00:12:13 |
|
|
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "key.h" |
#include "key.h" |
#include "rsa.h" |
#include "rsa.h" |
#include "ssh-dss.h" |
|
#include "ssh-rsa.h" |
|
#include "uuencode.h" |
#include "uuencode.h" |
#include "buffer.h" |
#include "buffer.h" |
#include "bufaux.h" |
#include "bufaux.h" |
|
|
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; |