Imported Upstream version 2.3.7
[platform/upstream/cryptsetup.git] / config.h.in
index 408e256..5c7632d 100644 (file)
@@ -3,6 +3,9 @@
 /* Define if building universal (internal helper macro) */
 #undef AC_APPLE_UNIVERSAL_BUILD
 
+/* maximum integritysetup keyfile size (in KiB) */
+#undef DEFAULT_INTEGRITY_KEYFILE_SIZE_MAXKB
+
 /* maximum keyfile size (in KiB) */
 #undef DEFAULT_KEYFILE_SIZE_MAXKB
 
 /* cipher mode for LUKS1 */
 #undef DEFAULT_LUKS1_MODE
 
-/* maximum keyfile size (in characters) */
+/* Argon2 PBKDF iteration time for LUKS2 (in ms) */
+#undef DEFAULT_LUKS2_ITER_TIME
+
+/* fallback cipher for LUKS2 keyslot (if data encryption is incompatible) */
+#undef DEFAULT_LUKS2_KEYSLOT_CIPHER
+
+/* fallback key size for LUKS2 keyslot (if data encryption is incompatible) */
+#undef DEFAULT_LUKS2_KEYSLOT_KEYBITS
+
+/* default luks2 locking directory permissions */
+#undef DEFAULT_LUKS2_LOCK_DIR_PERMS
+
+/* path to directory for LUKSv2 locks */
+#undef DEFAULT_LUKS2_LOCK_PATH
+
+/* Argon2 PBKDF memory cost for LUKS2 (in kB) */
+#undef DEFAULT_LUKS2_MEMORY_KB
+
+/* Argon2 PBKDF max parallel cost for LUKS2 (if CPUs available) */
+#undef DEFAULT_LUKS2_PARALLEL_THREADS
+
+/* Default PBKDF algorithm (pbkdf2 or argon2i/argon2id) for LUKS2 */
+#undef DEFAULT_LUKS2_PBKDF
+
+/* default LUKS format version */
+#undef DEFAULT_LUKS_FORMAT
+
+/* maximum passphrase size (in characters) */
 #undef DEFAULT_PASSPHRASE_SIZE_MAX
 
 /* cipher for plain mode */
 /* default RNG type for key generator */
 #undef DEFAULT_RNG
 
+/* override default path to directory with systemd temporary files */
+#undef DEFAULT_TMPFILESDIR
+
 /* data block size for verity mode */
 #undef DEFAULT_VERITY_DATA_BLOCK
 
+/* parity bytes for verity FEC */
+#undef DEFAULT_VERITY_FEC_ROOTS
+
 /* hash function for verity mode */
 #undef DEFAULT_VERITY_HASH
 
 /* Enable FIPS mode restrictions */
 #undef ENABLE_FIPS
 
+/* XTS mode - double default LUKS keysize if needed */
+#undef ENABLE_LUKS_ADJUST_XTS_KEYSIZE
+
 /* Define to 1 if translation of program messages to the user's native
    language is requested. */
 #undef ENABLE_NLS
 
-/* Enable password quality checking */
+/* Enable password quality checking using passwdqc library */
+#undef ENABLE_PASSWDQC
+
+/* Enable password quality checking using pwquality library */
 #undef ENABLE_PWQUALITY
 
 /* Requested gcrypt version */
 #undef GCRYPT_REQ_VERSION
 
+/* Define to 1 if you have the <argon2.h> header file. */
+#undef HAVE_ARGON2_H
+
+/* Define to 1 to use blkid for detection of disk signatures. */
+#undef HAVE_BLKID
+
+/* Define to 1 if you have the <blkid/blkid.h> header file. */
+#undef HAVE_BLKID_BLKID_H
+
+/* Define to 1 to use blkid_probe_step_back. */
+#undef HAVE_BLKID_STEP_BACK
+
+/* Define to 1 to use blkid_do_wipe. */
+#undef HAVE_BLKID_WIPE
+
 /* Define to 1 if you have the <byteswap.h> header file. */
 #undef HAVE_BYTESWAP_H
 
-/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
+/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the
    CoreFoundation framework. */
 #undef HAVE_CFLOCALECOPYCURRENT
 
-/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
+/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in
    the CoreFoundation framework. */
 #undef HAVE_CFPREFERENCESCOPYAPPVALUE
 
    */
 #undef HAVE_DCGETTEXT
 
+/* Define to 1 if you have the declaration of `blkid_do_probe', and to 0 if
+   you don't. */
+#undef HAVE_DECL_BLKID_DO_PROBE
+
+/* Define to 1 if you have the declaration of `blkid_do_safeprobe', and to 0
+   if you don't. */
+#undef HAVE_DECL_BLKID_DO_SAFEPROBE
+
+/* Define to 1 if you have the declaration of
+   `blkid_probe_filter_superblocks_type', and to 0 if you don't. */
+#undef HAVE_DECL_BLKID_PROBE_FILTER_SUPERBLOCKS_TYPE
+
+/* Define to 1 if you have the declaration of `blkid_probe_lookup_value ', and
+   to 0 if you don't. */
+#undef HAVE_DECL_BLKID_PROBE_LOOKUP_VALUE__________
+
+/* Define to 1 if you have the declaration of `blkid_probe_set_device', and to
+   0 if you don't. */
+#undef HAVE_DECL_BLKID_PROBE_SET_DEVICE
+
+/* Define to 1 if you have the declaration of `blkid_reset_probe', and to 0 if
+   you don't. */
+#undef HAVE_DECL_BLKID_RESET_PROBE
+
+/* Define to 1 if you have the declaration of `dm_device_get_name', and to 0
+   if you don't. */
+#undef HAVE_DECL_DM_DEVICE_GET_NAME
+
+/* Define to 1 if you have the declaration of `DM_DEVICE_GET_TARGET_VERSION',
+   and to 0 if you don't. */
+#undef HAVE_DECL_DM_DEVICE_GET_TARGET_VERSION
+
+/* Define to 1 if you have the declaration of `dm_device_has_holders', and to
+   0 if you don't. */
+#undef HAVE_DECL_DM_DEVICE_HAS_HOLDERS
+
+/* Define to 1 if you have the declaration of `dm_device_has_mounted_fs', and
+   to 0 if you don't. */
+#undef HAVE_DECL_DM_DEVICE_HAS_MOUNTED_FS
+
+/* Define to 1 if you have the declaration of `dm_task_deferred_remove', and
+   to 0 if you don't. */
+#undef HAVE_DECL_DM_TASK_DEFERRED_REMOVE
+
 /* Define to 1 if you have the declaration of `dm_task_retry_remove', and to 0
    if you don't. */
 #undef HAVE_DECL_DM_TASK_RETRY_REMOVE
    `DM_UDEV_DISABLE_DISK_RULES_FLAG', and to 0 if you don't. */
 #undef HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG
 
+/* Define to 1 if you have the declaration of `GCRY_CIPHER_MODE_XTS', and to 0
+   if you don't. */
+#undef HAVE_DECL_GCRY_CIPHER_MODE_XTS
+
+/* Define to 1 if you have the declaration of `json_object_deep_copy', and to
+   0 if you don't. */
+#undef HAVE_DECL_JSON_OBJECT_DEEP_COPY
+
+/* Define to 1 if you have the declaration of `json_object_object_add_ex', and
+   to 0 if you don't. */
+#undef HAVE_DECL_JSON_OBJECT_OBJECT_ADD_EX
+
 /* Define to 1 if you have the declaration of `NSS_GetVersion', and to 0 if
    you don't. */
 #undef HAVE_DECL_NSS_GETVERSION
 
+/* Define to 1 if you have the declaration of `O_CLOEXEC', and to 0 if you
+   don't. */
+#undef HAVE_DECL_O_CLOEXEC
+
 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
    don't. */
 #undef HAVE_DECL_STRERROR_R
 /* Define to 1 if you have the <endian.h> header file. */
 #undef HAVE_ENDIAN_H
 
+/* Define to 1 if you have the `explicit_bzero' function. */
+#undef HAVE_EXPLICIT_BZERO
+
 /* Define to 1 if you have the <fcntl.h> header file. */
 #undef HAVE_FCNTL_H
 
 /* Define if the GNU gettext() function is already present or preinstalled. */
 #undef HAVE_GETTEXT
 
-/* Define if you have the iconv() function. */
+/* Define if you have the iconv() function and it works. */
 #undef HAVE_ICONV
 
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H
 
+/* Define to 1 if the system has the type `key_serial_t'. */
+#undef HAVE_KEY_SERIAL_T
+
 /* Define to 1 if you have the `devmapper' library (-ldevmapper). */
 #undef HAVE_LIBDEVMAPPER
 
 /* Define to 1 if you have the <linux/if_alg.h> header file. */
 #undef HAVE_LINUX_IF_ALG_H
 
+/* Define to 1 if you have the <linux/keyctl.h> header file. */
+#undef HAVE_LINUX_KEYCTL_H
+
 /* Define to 1 if you have the <locale.h> header file. */
 #undef HAVE_LOCALE_H
 
 /* Define to 1 if you have the <malloc.h> header file. */
 #undef HAVE_MALLOC_H
 
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
+/* Define to 1 if you have the <minix/config.h> header file. */
+#undef HAVE_MINIX_CONFIG_H
 
 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
 #undef HAVE_NDIR_H
 /* Define to 1 if you have the <nettle/sha.h> header file. */
 #undef HAVE_NETTLE_SHA_H
 
+/* Define to 1 if you have the <nettle/version.h> header file. */
+#undef HAVE_NETTLE_VERSION_H
+
+/* Define to 1 if you have the `passwdqc_params_free' function. */
+#undef HAVE_PASSWDQC_PARAMS_FREE
+
+/* Define to 1 if you have the `posix_fallocate' function. */
+#undef HAVE_POSIX_FALLOCATE
+
 /* Define to 1 if you have the `posix_memalign' function. */
 #undef HAVE_POSIX_MEMALIGN
 
 /* Define to 1 if you have the <stdint.h> header file. */
 #undef HAVE_STDINT_H
 
+/* Define to 1 if you have the <stdio.h> header file. */
+#undef HAVE_STDIO_H
+
 /* Define to 1 if you have the <stdlib.h> header file. */
 #undef HAVE_STDLIB_H
 
-/* Define to 1 if you have the `strerror_r' function. */
+/* Define if you have `strerror_r'. */
 #undef HAVE_STRERROR_R
 
 /* Define to 1 if you have the <strings.h> header file. */
    */
 #undef HAVE_SYS_NDIR_H
 
+/* Define to 1 if you have the <sys/statvfs.h> header file. */
+#undef HAVE_SYS_STATVFS_H
+
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #undef HAVE_SYS_STAT_H
 
+/* Define to 1 if you have the <sys/sysmacros.h> header file. */
+#undef HAVE_SYS_SYSMACROS_H
+
 /* Define to 1 if you have the <sys/types.h> header file. */
 #undef HAVE_SYS_TYPES_H
 
 /* Define to 1 if you have the <uuid/uuid.h> header file. */
 #undef HAVE_UUID_UUID_H
 
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
-   */
+/* Define to 1 if you have the <wchar.h> header file. */
+#undef HAVE_WCHAR_H
+
+/* Define as const if the declaration of iconv() needs const. */
+#undef ICONV_CONST
+
+/* Enable kernel keyring service support */
+#undef KERNEL_KEYRING
+
+/* Define to the sub-directory where libtool stores uninstalled libraries. */
 #undef LT_OBJDIR
 
+/* Defined to 0 if not provided */
+#undef O_CLOEXEC
+
 /* Name of package */
 #undef PACKAGE
 
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
 
-/* Define to 1 if you have the ANSI C header files. */
+/* passwdqc library config file */
+#undef PASSWDQC_CONFIG_FILE
+
+/* Define to 1 if all of the C90 standard headers exist (not just the ones
+   required in a freestanding environment). This macro is provided for
+   backward compatibility; new code need not use it. */
 #undef STDC_HEADERS
 
 /* Define to 1 if strerror_r returns char *. */
 #undef STRERROR_R_CHAR_P
 
+/* Use internal Argon2 */
+#undef USE_INTERNAL_ARGON2
+
 /* Use internal PBKDF2 */
 #undef USE_INTERNAL_PBKDF2
 
+/* Use LUKS2 online reencryption extension */
+#undef USE_LUKS2_REENCRYPTION
+
 /* Enable extensions on AIX 3, Interix.  */
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
 #endif
+/* Enable general extensions on macOS.  */
+#ifndef _DARWIN_C_SOURCE
+# undef _DARWIN_C_SOURCE
+#endif
+/* Enable general extensions on Solaris.  */
+#ifndef __EXTENSIONS__
+# undef __EXTENSIONS__
+#endif
 /* Enable GNU extensions on systems that have them.  */
 #ifndef _GNU_SOURCE
 # undef _GNU_SOURCE
 #endif
-/* Enable threading extensions on Solaris.  */
+/* Enable X/Open compliant socket functions that do not require linking
+   with -lxnet on HP-UX 11.11.  */
+#ifndef _HPUX_ALT_XOPEN_SOCKET_API
+# undef _HPUX_ALT_XOPEN_SOCKET_API
+#endif
+/* Identify the host operating system as Minix.
+   This macro does not affect the system headers' behavior.
+   A future release of Autoconf may stop defining this macro.  */
+#ifndef _MINIX
+# undef _MINIX
+#endif
+/* Enable general extensions on NetBSD.
+   Enable NetBSD compatibility extensions on Minix.  */
+#ifndef _NETBSD_SOURCE
+# undef _NETBSD_SOURCE
+#endif
+/* Enable OpenBSD compatibility extensions on NetBSD.
+   Oddly enough, this does nothing on OpenBSD.  */
+#ifndef _OPENBSD_SOURCE
+# undef _OPENBSD_SOURCE
+#endif
+/* Define to 1 if needed for POSIX-compatible behavior.  */
+#ifndef _POSIX_SOURCE
+# undef _POSIX_SOURCE
+#endif
+/* Define to 2 if needed for POSIX-compatible behavior.  */
+#ifndef _POSIX_1_SOURCE
+# undef _POSIX_1_SOURCE
+#endif
+/* Enable POSIX-compatible threading on Solaris.  */
 #ifndef _POSIX_PTHREAD_SEMANTICS
 # undef _POSIX_PTHREAD_SEMANTICS
 #endif
+/* Enable extensions specified by ISO/IEC TS 18661-5:2014.  */
+#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
+# undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
+#endif
+/* Enable extensions specified by ISO/IEC TS 18661-1:2014.  */
+#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
+# undef __STDC_WANT_IEC_60559_BFP_EXT__
+#endif
+/* Enable extensions specified by ISO/IEC TS 18661-2:2015.  */
+#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
+# undef __STDC_WANT_IEC_60559_DFP_EXT__
+#endif
+/* Enable extensions specified by ISO/IEC TS 18661-4:2015.  */
+#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
+# undef __STDC_WANT_IEC_60559_FUNCS_EXT__
+#endif
+/* Enable extensions specified by ISO/IEC TS 18661-3:2015.  */
+#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
+# undef __STDC_WANT_IEC_60559_TYPES_EXT__
+#endif
+/* Enable extensions specified by ISO/IEC TR 24731-2:2010.  */
+#ifndef __STDC_WANT_LIB_EXT2__
+# undef __STDC_WANT_LIB_EXT2__
+#endif
+/* Enable extensions specified by ISO/IEC 24747:2009.  */
+#ifndef __STDC_WANT_MATH_SPEC_FUNCS__
+# undef __STDC_WANT_MATH_SPEC_FUNCS__
+#endif
 /* Enable extensions on HP NonStop.  */
 #ifndef _TANDEM_SOURCE
 # undef _TANDEM_SOURCE
 #endif
-/* Enable general extensions on Solaris.  */
-#ifndef __EXTENSIONS__
-# undef __EXTENSIONS__
+/* Enable X/Open extensions.  Define to 500 only if necessary
+   to make mbstate_t available.  */
+#ifndef _XOPEN_SOURCE
+# undef _XOPEN_SOURCE
 #endif
 
 
 # endif
 #endif
 
-/* Enable large inode numbers on Mac OS X 10.5.  */
-#ifndef _DARWIN_USE_64_BIT_INODE
-# define _DARWIN_USE_64_BIT_INODE 1
-#endif
-
 /* Number of bits in a file offset, on hosts where this is settable. */
 #undef _FILE_OFFSET_BITS
 
 /* Define for large files, on AIX-style hosts. */
 #undef _LARGE_FILES
 
-/* Define to 1 if on MINIX. */
-#undef _MINIX
-
-/* Define to 2 if the system does not provide POSIX.1 features except with
-   this defined. */
-#undef _POSIX_1_SOURCE
-
-/* Define to 1 if you need to in order for `stat' and other things to work. */
-#undef _POSIX_SOURCE
-
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const
 
 /* Define to `long int' if <sys/types.h> does not define. */
 #undef off_t
+
+/* Define to the equivalent of the C99 'restrict' keyword, or to
+   nothing if this is not supported.  Do not define if restrict is
+   supported only directly.  */
+#undef restrict
+/* Work around a bug in older versions of Sun C++, which did not
+   #define __restrict__ or support _Restrict or __restrict__
+   even though the corresponding Sun C compiler ended up with
+   "#define restrict _Restrict" or "#define restrict __restrict__"
+   in the previous line.  This workaround can be removed once
+   we assume Oracle Developer Studio 12.5 (2016) or later.  */
+#if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__
+# define _Restrict
+# define __restrict__
+#endif