Fix building without scrypt
[openssl.git] / crypto / kdf / scrypt.c
index c7aa823e491c886116f97def2989f53b594fbeee..3f4cf385dbfed32f2f12d8f36fd557ebb24a944b 100644 (file)
@@ -15,6 +15,8 @@
 #include "internal/cryptlib.h"
 #include "internal/evp_int.h"
 
 #include "internal/cryptlib.h"
 #include "internal/evp_int.h"
 
+#ifndef OPENSSL_NO_SCRYPT
+
 static int atou64(const char *nptr, uint64_t *result);
 
 typedef struct {
 static int atou64(const char *nptr, uint64_t *result);
 
 typedef struct {
@@ -256,3 +258,5 @@ const EVP_PKEY_METHOD scrypt_pkey_meth = {
     pkey_scrypt_ctrl,
     pkey_scrypt_ctrl_str
 };
     pkey_scrypt_ctrl,
     pkey_scrypt_ctrl_str
 };
+
+#endif