Transfer error redirection to fips.h, add OPENSSL_FIPSAPI to source files

that use it.
This commit is contained in:
Dr. Stephen Henson 2011-02-03 17:00:24 +00:00
parent 3710d1aae9
commit 14ae26f2e4
22 changed files with 41 additions and 12 deletions

View file

@ -56,6 +56,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include "cryptlib.h"
#include "bn_lcl.h"

View file

@ -56,6 +56,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include <openssl/bn.h>
#include "cryptlib.h"

View file

@ -109,6 +109,8 @@
*
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include "cryptlib.h"
#include "bn_lcl.h"

View file

@ -109,6 +109,8 @@
*
*/
#define OPENSSL_FIPSAPI
#include "cryptlib.h"
#include "bn_lcl.h"

View file

@ -111,6 +111,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include "cryptlib.h"
#include "bn_lcl.h"

View file

@ -61,6 +61,8 @@
* - Geoff
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>

View file

@ -56,6 +56,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>

View file

@ -56,6 +56,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"

View file

@ -58,6 +58,8 @@
/* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>

View file

@ -137,11 +137,6 @@ extern "C" {
#define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,NULL,0)
#endif
#if defined(OPENSSL_FIPSCANISTER) && !defined(OPENSSL_NO_FIPS_ERR)
#define ERR_put_error FIPS_put_error
#define ERR_add_error_data FIPS_add_error_data
#endif
#ifdef OPENSSL_FIPS
void FIPS_set_error_callbacks(
void (*put_cb)(int lib, int func,int reason,const char *file,int line),

View file

@ -48,6 +48,8 @@
*
*/
#define OPENSSL_FIPSAPI
#include <openssl/opensslconf.h>
#ifndef OPENSSL_NO_AES
#include <openssl/evp.h>

View file

@ -1,7 +0,0 @@
#include <openssl/opensslconf.h>
#ifdef OPENSSL_FIPS
# include "fips_err.h"
#else
static void *dummy=&dummy;
#endif

View file

@ -56,6 +56,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include <openssl/crypto.h>
#include "cryptlib.h"

View file

@ -56,6 +56,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>

View file

@ -56,6 +56,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>

View file

@ -56,6 +56,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>

View file

@ -56,6 +56,8 @@
*
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>

View file

@ -56,6 +56,8 @@
* [including the GNU Public Licence.]
*/
#define OPENSSL_FIPSAPI
#include <stdio.h>
#include <string.h>
#include <time.h>

View file

@ -120,6 +120,9 @@ void FIPS_set_locking_callback(void (*func)(int mode, int type,
#define CRYPTO_malloc FIPS_malloc
#define CRYPTO_free FIPS_free
#define ERR_put_error FIPS_put_error
#define ERR_add_error_data FIPS_add_error_data
#define EVP_MD_CTX_init FIPS_md_ctx_init
#define EVP_MD_CTX_cleanup FIPS_md_ctx_cleanup
#define EVP_MD_CTX_create FIPS_md_ctx_create

View file

@ -47,6 +47,8 @@
*
*/
#define OPENSSL_FIPSAPI
#include <string.h>
#include <openssl/err.h>
#include <openssl/fips.h>

View file

@ -47,6 +47,8 @@
*
*/
#define OPENSSL_FIPSAPI
#include <string.h>
#include <openssl/err.h>
#include <openssl/fips.h>

View file

@ -51,6 +51,8 @@
* ====================================================================
*/
#define OPENSSL_FIPSAPI
#include <openssl/err.h>
#include <openssl/fips.h>