version 1.43.2.2, 2002/10/11 14:51:52 |
version 1.43.2.3, 2003/04/03 22:35:17 |
|
|
#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; |