strdup() is a X/Open extension.
[openssl.git] / crypto / engine / hw_ncipher.c
index 8799a747d071d5d7ab37808ca65e98da4d74c768..98fd5227bc6c247994c03fda6382567bdc1cff7a 100644 (file)
@@ -65,8 +65,8 @@
 #include "engine_int.h"
 #include <openssl/engine.h>
 
-#ifndef NO_HW
-#ifndef NO_HW_NCIPHER
+#ifndef OPENSSL_NO_HW
+#ifndef OPENSSL_NO_HW_NCIPHER
 
 /* Attribution notice: nCipher have said several times that it's OK for
  * us to implement a general interface to their boxes, and recently declared
@@ -376,7 +376,7 @@ static void release_context(HWCryptoHook_ContextHandle hac)
        }
 
 /* (de)initialisation functions. */
-static int hwcrhk_init()
+static int hwcrhk_init(void)
        {
        HWCryptoHook_Init_t *p1;
        HWCryptoHook_Finish_t *p2;
@@ -475,7 +475,7 @@ err:
        return 0;
        }
 
-static int hwcrhk_finish()
+static int hwcrhk_finish(void)
        {
        int to_return = 1;
        if(hwcrhk_dso == NULL)
@@ -1016,5 +1016,5 @@ static void hwcrhk_log_message(void *logstr, const char *message)
        CRYPTO_w_unlock(CRYPTO_LOCK_BIO);
        }
 
-#endif /* !NO_HW_NCIPHER */
-#endif /* !NO_HW */
+#endif /* !OPENSSL_NO_HW_NCIPHER */
+#endif /* !OPENSSL_NO_HW */