Transfer error redirection to fips.h, add OPENSSL_FIPSAPI to source files
that use it.
This commit is contained in:
parent
3710d1aae9
commit
14ae26f2e4
@ -56,6 +56,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include "bn_lcl.h"
|
#include "bn_lcl.h"
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
|
@ -109,6 +109,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include "bn_lcl.h"
|
#include "bn_lcl.h"
|
||||||
|
@ -109,6 +109,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include "bn_lcl.h"
|
#include "bn_lcl.h"
|
||||||
|
|
||||||
|
@ -111,6 +111,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include "bn_lcl.h"
|
#include "bn_lcl.h"
|
||||||
|
|
||||||
|
@ -61,6 +61,8 @@
|
|||||||
* - Geoff
|
* - Geoff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
|
@ -58,6 +58,8 @@
|
|||||||
|
|
||||||
/* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
|
/* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
@ -137,11 +137,6 @@ extern "C" {
|
|||||||
#define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,NULL,0)
|
#define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,NULL,0)
|
||||||
#endif
|
#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
|
#ifdef OPENSSL_FIPS
|
||||||
void FIPS_set_error_callbacks(
|
void FIPS_set_error_callbacks(
|
||||||
void (*put_cb)(int lib, int func,int reason,const char *file,int line),
|
void (*put_cb)(int lib, int func,int reason,const char *file,int line),
|
||||||
|
@ -48,6 +48,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <openssl/opensslconf.h>
|
#include <openssl/opensslconf.h>
|
||||||
#ifndef OPENSSL_NO_AES
|
#ifndef OPENSSL_NO_AES
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
#include <openssl/opensslconf.h>
|
|
||||||
|
|
||||||
#ifdef OPENSSL_FIPS
|
|
||||||
# include "fips_err.h"
|
|
||||||
#else
|
|
||||||
static void *dummy=&dummy;
|
|
||||||
#endif
|
|
@ -56,6 +56,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -120,6 +120,9 @@ void FIPS_set_locking_callback(void (*func)(int mode, int type,
|
|||||||
#define CRYPTO_malloc FIPS_malloc
|
#define CRYPTO_malloc FIPS_malloc
|
||||||
#define CRYPTO_free FIPS_free
|
#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_init FIPS_md_ctx_init
|
||||||
#define EVP_MD_CTX_cleanup FIPS_md_ctx_cleanup
|
#define EVP_MD_CTX_cleanup FIPS_md_ctx_cleanup
|
||||||
#define EVP_MD_CTX_create FIPS_md_ctx_create
|
#define EVP_MD_CTX_create FIPS_md_ctx_create
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/fips.h>
|
#include <openssl/fips.h>
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/fips.h>
|
#include <openssl/fips.h>
|
||||||
|
@ -51,6 +51,8 @@
|
|||||||
* ====================================================================
|
* ====================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define OPENSSL_FIPSAPI
|
||||||
|
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/fips.h>
|
#include <openssl/fips.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user