X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fo_fips.c;h=113914855998309a767e9e022d33a1958dbea458;hp=a57a02b07028edd38fcc6da878eadb07952dfd4f;hb=98186eb4e4aef6262ed6b0f499348defa2c26893;hpb=086e32a6c7df4588834bc4d033a00382fd313b58 diff --git a/crypto/o_fips.c b/crypto/o_fips.c index a57a02b070..1139148559 100644 --- a/crypto/o_fips.c +++ b/crypto/o_fips.c @@ -1,5 +1,6 @@ -/* Written by Stephen henson (steve@openssl.org) for the OpenSSL - * project 2011. +/* + * Written by Stephen henson (steve@openssl.org) for the OpenSSL project + * 2011. */ /* ==================================================================== * Copyright (c) 2011 The OpenSSL Project. All rights reserved. @@ -9,7 +10,7 @@ * are met: * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in @@ -55,29 +56,28 @@ * */ -#include "cryptlib.h" +#include "internal/cryptlib.h" #ifdef OPENSSL_FIPS -#include +# include #endif int FIPS_mode(void) - { +{ #ifdef OPENSSL_FIPS - return FIPS_module_mode(); + return FIPS_module_mode(); #else - return 0; + return 0; #endif - } +} int FIPS_mode_set(int r) - { +{ #ifdef OPENSSL_FIPS - return FIPS_module_mode_set(r); + return FIPS_module_mode_set(r); #else - if (r == 0) - return 1; - CRYPTOerr(CRYPTO_F_FIPS_MODE_SET, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED); - return 0; + if (r == 0) + return 1; + CRYPTOerr(CRYPTO_F_FIPS_MODE_SET, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED); + return 0; #endif - } - +}