int opfd;
};
+/* Shared with hash kernel backend */
+int crypt_kernel_socket_init(struct sockaddr_alg *sa, int *tfmfd, int *opfd);
+
int crypt_kernel_socket_init(struct sockaddr_alg *sa, int *tfmfd, int *opfd)
{
*tfmfd = socket(AF_ALG, SOCK_SEQPACKET, 0);
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
+#include "luks.h"
#include "internal.h"
static void _error_hint(struct crypt_device *ctx, const char *device,
#include <sys/types.h>
#include "utils_dm.h"
-/* These are DM helpers used only by this file */
-int dm_is_dm_device(int major, int minor);
-int dm_is_dm_kernel_name(const char *name);
-char *dm_device_path(const char *prefix, int major, int minor);
-
char *crypt_lookup_dev(const char *dev_id);
int crypt_sysfs_get_rotational(int major, int minor, int *rotational);
const char *dm_get_dir(void);
+/* These are DM helpers used only by utils_devpath file */
+int dm_is_dm_device(int major, int minor);
+int dm_is_dm_kernel_name(const char *name);
+char *dm_device_path(const char *prefix, int major, int minor);
+
#endif /* _UTILS_DM_H */
{ "twofish", "xts", 64, 16 },
{ NULL, NULL, 0, 0 }
};
- static char *bkdfs[] = {
+ static const char *bkdfs[] = {
"sha1", "sha256", "sha512", "ripemd160", "whirlpool", NULL
};
char cipher[MAX_CIPHER_LEN], cipher_mode[MAX_CIPHER_LEN];
int yesDialog(const char *msg, void *usrptr __attribute__((unused)));
void show_status(int errcode);
const char *uuid_or_device(const char *spec);
+__attribute__ ((noreturn)) \
void usage(poptContext popt_context, int exitcode, const char *error, const char *more);
void dbg_version_and_cmd(int argc, const char **argv);
int translate_errno(int r);