-/* crypt_get_key() with signal handler */
-int tools_get_key(const char *prompt,
- char **key, size_t *key_size,
- size_t keyfile_offset, size_t keyfile_size_max,
- const char *key_file,
- int timeout, int verify, int pwquality,
- struct crypt_device *cd)
-{
- int r, block;
-
- block = signals_blocked;
- if (block)
- set_int_block(0);
-
- r = crypt_get_key(prompt, key, key_size, keyfile_offset,
- keyfile_size_max, key_file, timeout, verify, cd);
- if (block && !quit)
- set_int_block(1);
-
- return r;
-}
-