diff options
author | jsing <> | 2014-04-15 13:42:55 +0000 |
---|---|---|
committer | jsing <> | 2014-04-15 13:42:55 +0000 |
commit | 69a8d2dcc19aed0d1116ba2ecd81cce5ae736c94 (patch) | |
tree | f085d85cb06e6b6e1a1b1d52cced54d9f7d7e5f2 /src/lib/libcrypto/o_fips.c | |
parent | c7fdfc89ee30180bf262c4b146c1b6e1030083d6 (diff) | |
download | openbsd-69a8d2dcc19aed0d1116ba2ecd81cce5ae736c94.tar.gz openbsd-69a8d2dcc19aed0d1116ba2ecd81cce5ae736c94.tar.bz2 openbsd-69a8d2dcc19aed0d1116ba2ecd81cce5ae736c94.zip |
First pass at applying KNF to the OpenSSL code, which almost makes it
readable. This pass is whitespace only and can readily be verified using
tr and md5.
Diffstat (limited to 'src/lib/libcrypto/o_fips.c')
-rw-r--r-- | src/lib/libcrypto/o_fips.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/libcrypto/o_fips.c b/src/lib/libcrypto/o_fips.c index f6d1b21855..9c185cfb18 100644 --- a/src/lib/libcrypto/o_fips.c +++ b/src/lib/libcrypto/o_fips.c | |||
@@ -62,18 +62,20 @@ | |||
62 | #include <openssl/rand.h> | 62 | #include <openssl/rand.h> |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | int FIPS_mode(void) | 65 | int |
66 | { | 66 | FIPS_mode(void) |
67 | { | ||
67 | OPENSSL_init(); | 68 | OPENSSL_init(); |
68 | #ifdef OPENSSL_FIPS | 69 | #ifdef OPENSSL_FIPS |
69 | return FIPS_module_mode(); | 70 | return FIPS_module_mode(); |
70 | #else | 71 | #else |
71 | return 0; | 72 | return 0; |
72 | #endif | 73 | #endif |
73 | } | 74 | } |
74 | 75 | ||
75 | int FIPS_mode_set(int r) | 76 | int |
76 | { | 77 | FIPS_mode_set(int r) |
78 | { | ||
77 | OPENSSL_init(); | 79 | OPENSSL_init(); |
78 | #ifdef OPENSSL_FIPS | 80 | #ifdef OPENSSL_FIPS |
79 | #ifndef FIPS_AUTH_USER_PASS | 81 | #ifndef FIPS_AUTH_USER_PASS |
@@ -92,5 +94,4 @@ int FIPS_mode_set(int r) | |||
92 | CRYPTOerr(CRYPTO_F_FIPS_MODE_SET, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED); | 94 | CRYPTOerr(CRYPTO_F_FIPS_MODE_SET, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED); |
93 | return 0; | 95 | return 0; |
94 | #endif | 96 | #endif |
95 | } | 97 | } |
96 | |||