diff options
author | Tom Caputi <[email protected]> | 2017-09-12 16:15:11 -0400 |
---|---|---|
committer | Tom Caputi <[email protected]> | 2017-10-11 16:54:48 -0400 |
commit | 4807c0badb130ae70cf6f0887b4be1648f217f1a (patch) | |
tree | cfc0312e79f82eceda66d142726a122191cea099 /config | |
parent | 94d49e8f9bd2e58a783066327c84b7d3b605ac0f (diff) |
Encryption patch follow-up
* PBKDF2 implementation changed to OpenSSL implementation.
* HKDF implementation moved to its own file and tests
added to ensure correctness.
* Removed libzfs's now unnecessary dependency on libzpool
and libicp.
* Ztest can now create and test encrypted datasets. This is
currently disabled until issue #6526 is resolved, but
otherwise functions as advertised.
* Several small bug fixes discovered after enabling ztest
to run on encrypted datasets.
* Fixed coverity defects added by the encryption patch.
* Updated man pages for encrypted send / receive behavior.
* Fixed a bug where encrypted datasets could receive
DRR_WRITE_EMBEDDED records.
* Minor code cleanups / consolidation.
Signed-off-by: Tom Caputi <[email protected]>
Diffstat (limited to 'config')
-rw-r--r-- | config/user-libssl.m4 | 12 | ||||
-rw-r--r-- | config/user.m4 | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/config/user-libssl.m4 b/config/user-libssl.m4 new file mode 100644 index 000000000..b65a51400 --- /dev/null +++ b/config/user-libssl.m4 @@ -0,0 +1,12 @@ +dnl # +dnl # Check for libssl. Used for userspace password derivation via PBKDF2. +dnl # +AC_DEFUN([ZFS_AC_CONFIG_USER_LIBSSL], [ + LIBSSL= + + AC_CHECK_HEADER([openssl/evp.h], [], [AC_MSG_FAILURE([ + *** evp.h missing, libssl-devel package required])]) + + AC_SUBST([LIBSSL], ["-lssl -lcrypto"]) + AC_DEFINE([HAVE_LIBSSL], 1, [Define if you have libssl]) +]) diff --git a/config/user.m4 b/config/user.m4 index 21ff7143a..73f6433a2 100644 --- a/config/user.m4 +++ b/config/user.m4 @@ -13,6 +13,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [ ZFS_AC_CONFIG_USER_LIBBLKID ZFS_AC_CONFIG_USER_LIBATTR ZFS_AC_CONFIG_USER_LIBUDEV + ZFS_AC_CONFIG_USER_LIBSSL ZFS_AC_CONFIG_USER_FRAME_LARGER_THAN ZFS_AC_CONFIG_USER_RUNSTATEDIR ZFS_AC_CONFIG_USER_MAKEDEV_IN_SYSMACROS |