Add scrypt OID from draft-josefsson-scrypt-kdf-03
[openssl.git] / crypto / o_init.c
index db4cdc443b8f4cc82617b27e13759ea46cc172df..b7b969b00b5199f13e8c3435c07c222c62b514e3 100644 (file)
@@ -1,5 +1,6 @@
 /* o_init.c */
-/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
+/*
+ * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
  * project.
  */
 /* ====================================================================
@@ -10,7 +11,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
 #include <e_os.h>
 #include <openssl/err.h>
 #ifdef OPENSSL_FIPS
-#include <openssl/fips.h>
-#include <openssl/rand.h>
+# include <openssl/fips.h>
+# include <openssl/rand.h>
 #endif
 
-/* Perform any essential OpenSSL initialization operations.
- * Currently only sets FIPS callbacks
+/*
+ * Perform any essential OpenSSL initialization operations. Currently only
+ * sets FIPS callbacks
  */
 
 void OPENSSL_init(void)
-       {
-       static int done = 0;
-       if (done)
-               return;
-       done = 1;
+{
+    static int done = 0;
+    if (done)
+        return;
+    done = 1;
 #ifdef OPENSSL_FIPS
-       FIPS_set_locking_callbacks(CRYPTO_lock, CRYPTO_add_lock);
-       FIPS_set_error_callbacks(ERR_put_error, ERR_add_error_vdata);
-       FIPS_set_malloc_callbacks(CRYPTO_malloc, CRYPTO_free);
-       RAND_init_fips();
+    FIPS_set_locking_callbacks(CRYPTO_lock, CRYPTO_add_lock);
+    FIPS_set_error_callbacks(ERR_put_error, ERR_add_error_vdata);
+    FIPS_set_malloc_callbacks(CRYPTO_malloc, CRYPTO_free);
+    RAND_init_fips();
 #endif
-#if 0
-       fprintf(stderr, "Called OPENSSL_init\n");
-#endif
-       }
-
+}