crypt_job() [cryptsetup-1.0.5/lib/setup.c] September 19, 2007
Posted by Wildan Maulana in cryptsetup.trackback
static int crypt_job(int (*job)(int arg, struct setup_backend *backend,
struct crypt_options *options),
int arg, struct crypt_options *options)
{
struct setup_backend *backend;
int r;backend = get_setup_backend(default_backend);
setup_enter(backend);if (!backend) {
set_error(“No setup backend available”);
r = -ENOSYS;
goto out;
}r = job(arg, backend, options);
out:
setup_leave(backend);
if (backend)
put_setup_backend(backend);if (r >= 0)
set_error(NULL);return r;
}
[…] by wildanm in cryptsetup. trackback int crypt_luksOpen(struct crypt_options *options) { return crypt_job(__crypt_luks_open, 0, options); […]