version 1.136.2.1, 2006/09/30 04:06:51 |
version 1.143, 2006/03/30 11:05:17 |
|
|
* called by a name other than "ssh" or "Secure Shell". |
* called by a name other than "ssh" or "Secure Shell". |
*/ |
*/ |
|
|
|
#include "includes.h" |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/socket.h> |
|
#include <sys/param.h> |
|
|
|
#include <openssl/evp.h> |
#include <openssl/evp.h> |
#include <openssl/pem.h> |
#include <openssl/pem.h> |
|
|
#include <errno.h> |
|
#include <fcntl.h> |
|
#include <pwd.h> |
|
#include <stdio.h> |
|
#include <stdlib.h> |
|
#include <string.h> |
|
#include <unistd.h> |
|
|
|
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "key.h" |
#include "key.h" |
#include "rsa.h" |
#include "rsa.h" |
#include "authfile.h" |
#include "authfile.h" |
#include "uuencode.h" |
#include "uuencode.h" |
#include "buffer.h" |
#include "buffer.h" |
|
#include "bufaux.h" |
#include "pathnames.h" |
#include "pathnames.h" |
#include "log.h" |
#include "log.h" |
#include "misc.h" |
#include "misc.h" |
#include "match.h" |
#include "match.h" |
#include "hostfile.h" |
#include "hostfile.h" |
#include "dns.h" |
|
|
|
#ifdef SMARTCARD |
#ifdef SMARTCARD |
#include "scard.h" |
#include "scard.h" |
#endif |
#endif |
|
#include "dns.h" |
|
|
/* Number of bits in the RSA/DSA key. This value can be set on the command line. */ |
/* Number of bits in the RSA/DSA key. This value can be set on the command line. */ |
#define DEFAULT_BITS 2048 |
#define DEFAULT_BITS 2048 |
|
|
xfree(fp); |
xfree(fp); |
exit(0); |
exit(0); |
} |
} |
if (comment) { |
if (comment) |
xfree(comment); |
xfree(comment); |
comment = NULL; |
|
} |
|
|
|
f = fopen(identity_file, "r"); |
f = fopen(identity_file, "r"); |
if (f != NULL) { |
if (f != NULL) { |