aboutsummaryrefslogtreecommitdiffstats
path: root/g13/call-syshelp.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-08-13 17:27:28 +0000
committerWerner Koch <[email protected]>2016-08-13 17:40:32 +0000
commit700920640211168ae1c97d0adef74ba8615d90bb (patch)
tree0561a5a22deaef82d15dae360e3cb83bbc443740 /g13/call-syshelp.h
parentg13: Move some function around. (diff)
downloadgnupg-700920640211168ae1c97d0adef74ba8615d90bb.tar.gz
gnupg-700920640211168ae1c97d0adef74ba8615d90bb.zip
g13: Consider g13tab for a mount command.
* g13/sh-cmd.c (cmd_getkeyblob): New. (register_commands): Register it. * g13/call-syshelp.c (getkeyblob_data_cb): New. (call_syshelp_get_keyblob): New. * g13/mount.c: Include callsyshelp.h. (g13_mount_container): Ask syshelp whether the filename is managed by g13tab. Call syshelp to get the encrypted keyblob in this case. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g13/call-syshelp.h')
-rw-r--r--g13/call-syshelp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/g13/call-syshelp.h b/g13/call-syshelp.h
index 14deb7d18..aa4b692f4 100644
--- a/g13/call-syshelp.h
+++ b/g13/call-syshelp.h
@@ -25,6 +25,9 @@
void call_syshelp_release (ctrl_t ctrl);
gpg_error_t call_syshelp_find_device (ctrl_t ctrl,
const char *name, char **r_blockdev);
+gpg_error_t call_syshelp_get_keyblob (ctrl_t ctrl,
+ void **r_enckeyblob,
+ size_t *r_enckeybloblen);
gpg_error_t call_syshelp_set_device (ctrl_t ctrl, const char *fname);
gpg_error_t call_syshelp_run_create (ctrl_t ctrl, int conttype);
gpg_error_t call_syshelp_run_mount (ctrl_t ctrl, int conttype,