12 # define setlocale(Category, Locale) do { } while (0)
17 # define _(Text) gettext (Text)
19 # undef bindtextdomain
20 # define bindtextdomain(Domain, Directory) do { } while (0)
22 # define textdomain(Domain) do { } while (0)
24 # define dcgettext(Domainname, Text, Category) Text
27 #define N_(Text) (Text)
29 #define DEFAULT_CIPHER "aes"
30 #define DEFAULT_LUKS_CIPHER "aes-cbc-essiv:sha256"
31 #define DEFAULT_HASH "ripemd160"
32 #define DEFAULT_LUKS_HASH "sha1"
33 #define DEFAULT_KEY_SIZE 256
34 #define DEFAULT_LUKS_KEY_SIZE 128
36 #define MAX_CIPHER_LEN 32
38 /* Helper funcions provided by internal libcryptsetup objects */
39 void set_default_log(void (*log)(int class, char *msg));
40 void logger(struct crypt_device *cd, int class, const char *file, int line, const char *format, ...);
41 #define log_dbg(x...) logger(NULL, CRYPT_LOG_DEBUG, __FILE__, __LINE__, x)
42 #define log_std(x...) logger(NULL, CRYPT_LOG_NORMAL, __FILE__, __LINE__, x)
43 #define log_err(x...) logger(NULL, CRYPT_LOG_ERROR, __FILE__, __LINE__, x)
45 extern int memlock_inc(struct crypt_device *ctx);
46 extern int memlock_dec(struct crypt_device *ctx);
47 extern int dm_init(struct crypt_device *context, int check_kernel);
48 extern void dm_exit(void);
49 extern int parse_into_name_and_mode(const char *nameAndMode, char *name, char *mode);
51 #endif /* CRYPTSETUP_H */