diff options
Diffstat (limited to 'lib/libkeynote/header.h')
-rw-r--r-- | lib/libkeynote/header.h | 66 |
1 files changed, 3 insertions, 63 deletions
diff --git a/lib/libkeynote/header.h b/lib/libkeynote/header.h index 7c14b508a55..64d2bd4afe9 100644 --- a/lib/libkeynote/header.h +++ b/lib/libkeynote/header.h @@ -1,4 +1,4 @@ -/* $OpenBSD: header.h,v 1.3 1999/10/09 06:59:37 angelos Exp $ */ +/* $OpenBSD: header.h,v 1.4 1999/10/09 19:47:31 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -26,6 +26,7 @@ extern void keynote_sign(int, char **), keynote_sigver(int, char **); extern void keynote_verify(int, char **), keynote_keygen(int, char **); extern void print_key(FILE *, char *, char *, int, int); +extern void mystrncpy(char *, char *, int); extern void print_space(FILE *, int); extern int read_environment(char *); extern void parse_key(char *); @@ -38,72 +39,11 @@ int sessid; /* Defines */ #define SEED_LEN 40 #define RND_BYTES 1024 -#define DEFAULT_PUBLIC 0x10001 +#define DEFAULT_PUBLIC 0x10001 #define KEY_PRINT_OFFSET 12 #define KEY_PRINT_LENGTH 50 #define SIG_PRINT_OFFSET 12 #define SIG_PRINT_LENGTH 50 - -#if !defined(HAVE_STRCASECMP) && defined(HAVE_STRICMP) -#define strcasecmp stricmp -#endif /* !HAVE_STRCASECMP && HAVE_STRICMP */ - -#if !defined(HAVE_STRNCASECMP) && defined(HAVE_STRNICMP) -#define strncasecmp strnicmp -#endif /* !HAVE_STRNCASECMP && HAVE_STRNICMP */ - -#if !defined(HAVE_OPEN) && defined(HAVE__OPEN) -#define open _open -#endif /* !HAVE_OPEN && HAVE__OPEN */ - -#if !defined(HAVE_READ) && defined(HAVE__READ) -#define read _read -#endif /* !HAVE_READ && HAVE__OPEN */ - -#if !defined(HAVE_CLOSE) && defined(HAVE__CLOSE) -#define close _close -#endif /* !HAVE_CLOSE && HAVE__CLOSE */ - -#if defined(CRYPTO) -#if HAVE__DEV_URANDOM -#define KEYNOTERNDFILENAME "/dev/urandom" -#else /* HAVE__DEV_URANDOM */ -#error "You need a random device!" -#endif /* HAVE__DEV_URANDOM */ -#endif /* CRYPTO */ - -/* Includes */ -#if HAVE_REGEX_H -#include <sys/types.h> -#include <regex.h> -#endif /* HAVE_REGEX_H */ - -#if defined(CRYPTO) -#if HAVE_OPENSSL_CRYPTO_H -#include <openssl/crypto.h> -#include <openssl/dsa.h> -#include <openssl/rsa.h> -#include <openssl/sha.h> -#include <openssl/md5.h> -#include <openssl/err.h> -#include <openssl/rand.h> -#include <openssl/x509.h> -#include <openssl/pem.h> -#elif HAVE_SSL_CRYPTO_H -#include <ssl/crypto.h> -#include <ssl/dsa.h> -#include <ssl/rsa.h> -#include <ssl/sha.h> -#include <ssl/md5.h> -#include <ssl/err.h> -#include <ssl/rand.h> -#include <ssl/x509.h> -#include <ssl/pem.h> -#else /* HAVE_OPENSSL_CRYPTO_H */ -#error "SSLeay or OpenSSL not detected!" -#endif /* HAVE_OPENSSL_CRYPTO_H */ -#endif /* CRYPTO */ - #endif /* _HEADER_H_ */ |