aboutsummaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorJason King <[email protected]>2020-04-28 12:55:18 -0500
committerGitHub <[email protected]>2020-04-28 10:55:18 -0700
commitc14ca1456e6e7b2fdfd7578207c7f1866c852a77 (patch)
tree4f27b9c4b81a394405a08665b4745bff9c572880 /udev
parent89a6610ed053359d2299715e519d06d2ca5c053f (diff)
Support custom URI schemes for the keylocation property
Every platform has their own preferred methods for implementing URI schemes beyond the currently supported file scheme (e.g. 'https' on FreeBSD would likely use libfetch, while Linux distros and illumos would probably use libcurl, etc). It would be helpful if libzfs can be extended to support additional schemes in a simple manner. A table of (scheme, handler_function) pairs is added to libzfs_crypto.c, and the existing functions in libzfs_crypto.c so that when the key format is ZFS_KEYFORMAT_URI, the scheme from the URI string is extracted, and a matching handler it located in the aforementioned table (returning an error if no matching handler is found). The handler function is then invoked to retrieve the key material (in the format specified by the keyformat property) and the key is loaded or the handler can return an error to abort the key loading process. Reviewed by: Sean Eric Fagan <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Jason King <[email protected]> Closes #10218
Diffstat (limited to 'udev')
0 files changed, 0 insertions, 0 deletions