| 6 |
details. |
details. |
| 7 |
|
|
| 8 |
Interface to cryptographic library |
Interface to cryptographic library |
| 9 |
$Id: crypto.h,v 1.2 2002/07/22 17:54:48 rabbi Exp $ */ |
$Id: crypto.h,v 1.3 2002/09/18 23:26:16 rabbi Exp $ */ |
| 10 |
|
|
| 11 |
|
|
| 12 |
#ifndef _CRYPTO_H |
#ifndef _CRYPTO_H |
| 17 |
#include <openssl/opensslv.h> |
#include <openssl/opensslv.h> |
| 18 |
#if (OPENSSL_VERSION_NUMBER < 0x0903100) |
#if (OPENSSL_VERSION_NUMBER < 0x0903100) |
| 19 |
#error "This version of OpenSSL is not supported. Please get a more current verion from http://www.openssl.org" |
#error "This version of OpenSSL is not supported. Please get a more current verion from http://www.openssl.org" |
| 20 |
#endif |
#endif /* version check */ |
| 21 |
#include <openssl/des.h> |
#include <openssl/des.h> |
| 22 |
#include <openssl/blowfish.h> |
#include <openssl/blowfish.h> |
| 23 |
#include <openssl/md5.h> |
#include <openssl/md5.h> |
| 28 |
#include <openssl/dsa.h> |
#include <openssl/dsa.h> |
| 29 |
#ifdef USE_RSA |
#ifdef USE_RSA |
| 30 |
#include <openssl/rsa.h> |
#include <openssl/rsa.h> |
| 31 |
#endif |
#endif /* USE_RSA */ |
| 32 |
#ifdef USE_IDEA |
#ifdef USE_IDEA |
| 33 |
#include <openssl/idea.h> |
#include <openssl/idea.h> |
| 34 |
#endif |
#endif /* USE_IDEA */ |
| 35 |
#ifdef USE_AES |
#ifdef USE_AES |
| 36 |
#include <openssl/aes.h> |
#include <openssl/aes.h> |
| 37 |
#endif |
#endif /* USE_AES */ |
| 38 |
#include <openssl/cast.h> |
#include <openssl/cast.h> |
| 39 |
#include <openssl/rand.h> |
#include <openssl/rand.h> |
| 40 |
|
|
| 41 |
#ifdef USE_RSA |
#ifdef USE_RSA |
| 42 |
typedef RSA PUBKEY; |
typedef RSA PUBKEY; |
| 43 |
typedef RSA SECKEY; |
typedef RSA SECKEY; |
| 44 |
#endif |
#endif /* USE_RSA */ |
| 45 |
|
|
| 46 |
#else |
#else /* end of USE_OPENSSL */ |
| 47 |
/* #error "No crypto library." */ |
/* #error "No crypto library." */ |
| 48 |
typedef void PUBKEY; |
typedef void PUBKEY; |
| 49 |
typedef void SECKEY; |
typedef void SECKEY; |
| 50 |
#endif |
#endif /* else not USE_OPENSSL */ |
| 51 |
|
|
| 52 |
#endif |
#endif /* ifndef _CRYPTO_H */ |