enchive/config.h

85 lines
1.7 KiB
C
Raw Normal View History

#ifndef CONFIG_H
#define CONFIG_H
2017-03-05 19:40:24 +01:00
/* Compile-time configuration */
2017-03-06 03:02:00 +01:00
#ifndef ENCHIVE_VERSION
2019-12-01 19:23:16 +01:00
# define ENCHIVE_VERSION 3.5
2017-03-06 03:02:00 +01:00
#endif
#ifndef ENCHIVE_FORMAT_VERSION
2017-03-08 04:17:12 +01:00
# define ENCHIVE_FORMAT_VERSION 3
#endif
#ifndef ENCHIVE_FILE_EXTENSION
# define ENCHIVE_FILE_EXTENSION .enchive
#endif
#ifndef ENCHIVE_KEY_DERIVE_ITERATIONS
2017-03-08 04:16:54 +01:00
# define ENCHIVE_KEY_DERIVE_ITERATIONS 25 /* 32MB */
#endif
#ifndef ENCHIVE_SECKEY_DERIVE_ITERATIONS
2017-03-08 04:16:54 +01:00
# define ENCHIVE_SECKEY_DERIVE_ITERATIONS 29 /* 512MB */
#endif
2017-03-05 21:51:38 +01:00
#ifndef ENCHIVE_OPTION_AGENT
2018-07-15 19:28:06 +02:00
# if defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__)
2017-03-05 21:51:38 +01:00
# define ENCHIVE_OPTION_AGENT 1
# else
# define ENCHIVE_OPTION_AGENT 0
# endif
#endif
#ifndef ENCHIVE_AGENT_TIMEOUT
# define ENCHIVE_AGENT_TIMEOUT 900 /* 15 minutes */
#endif
#ifndef ENCHIVE_AGENT_DEFAULT_ENABLED
# define ENCHIVE_AGENT_DEFAULT_ENABLED 0
#endif
#ifndef ENCHIVE_PINENTRY_DEFAULT
# define ENCHIVE_PINENTRY_DEFAULT pinentry
#endif
#ifndef ENCHIVE_PINENTRY_DEFAULT_ENABLED
# define ENCHIVE_PINENTRY_DEFAULT_ENABLED 0
#endif
2017-03-05 23:59:40 +01:00
#ifndef ENCHIVE_PASSPHRASE_MAX
# define ENCHIVE_PASSPHRASE_MAX 1024
#endif
2017-03-05 19:40:24 +01:00
/* Required for correct builds */
#ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 1
#endif
2017-03-05 18:54:40 +01:00
#define OPTPARSE_IMPLEMENTATION
2017-03-05 19:40:24 +01:00
#define STR(a) XSTR(a)
#define XSTR(a) #a
/* Integer definitions needed by crypto */
2017-03-03 16:42:48 +01:00
#include <stdint.h>
/* If your compiler lacks a stdint.h, such as when compiling with a
* plain ANSI C compiler, you'll need to replace this include with the
* appropriate typedefs for the following types:
*
* uint8_t
* uint32_t
* uint64_t
* int32_t
* int64_t
*
* You will also need to define these macros:
*
* UINT8_C
* UINT32_C
*/
2017-03-03 16:42:48 +01:00
#endif /* CONFIG_H */