Make sure we get the definition of OPENSSL_NO_RC2.

This commit is contained in:
Richard Levitte 2003-03-20 23:29:06 +00:00
parent 786b0075d5
commit c7e7fc3ee4
2 changed files with 4 additions and 3 deletions

View File

@ -56,10 +56,11 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#ifndef OPENSSL_NO_RC2
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "cryptlib.h"
#ifndef OPENSSL_NO_RC2
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "evp_locl.h" #include "evp_locl.h"

View File

@ -59,6 +59,7 @@
#ifndef HEADER_RC2_H #ifndef HEADER_RC2_H
#define HEADER_RC2_H #define HEADER_RC2_H
#include <openssl/opensslconf.h> /* OPENSSL_NO_RC2, RC2_INT */
#ifdef OPENSSL_NO_RC2 #ifdef OPENSSL_NO_RC2
#error RC2 is disabled. #error RC2 is disabled.
#endif #endif
@ -66,7 +67,6 @@
#define RC2_ENCRYPT 1 #define RC2_ENCRYPT 1
#define RC2_DECRYPT 0 #define RC2_DECRYPT 0
#include <openssl/opensslconf.h> /* RC2_INT */
#define RC2_BLOCK 8 #define RC2_BLOCK 8
#define RC2_KEY_LENGTH 16 #define RC2_KEY_LENGTH 16