summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-08-02 16:53:28 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-09-08 09:36:21 -0400
commit69aaef8719c5cf33ed1c4090fa313ba281bf8a02 (patch)
treefd53594df15164396635e2007c31f7ee91c6a9e3 /Makefile.am
parente5ba9ef0d556a6195db692f87deedbefc2fbef17 (diff)
downloadsssd-69aaef8719c5cf33ed1c4090fa313ba281bf8a02.tar.gz
sssd-69aaef8719c5cf33ed1c4090fa313ba281bf8a02.tar.xz
sssd-69aaef8719c5cf33ed1c4090fa313ba281bf8a02.zip
Password obfuscation utility functions
Adds two utility functions to obfuscate a password and inverse to extract the cleartext password back. So far, only NSS-based implementation is provided.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index b0e04b5d5..c06a36055 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -81,6 +81,7 @@ if HAVE_CHECK
auth-tests \
ipa_ldap_opt-tests \
simple_access-tests \
+ crypto-tests \
util-tests
endif
@@ -118,11 +119,13 @@ noinst_LTLIBRARIES = \
if HAVE_NSS
SSS_CRYPT_SOURCES = src/util/crypto/nss/nss_sha512crypt.c \
+ src/util/crypto/nss/nss_obfuscate.c \
src/util/crypto/nss/nss_util.c
SSS_CRYPT_CFLAGS = $(NSS_CFLAGS)
SSS_CRYPT_LIBS = $(NSS_LIBS)
else
- SSS_CRYPT_SOURCES = src/util/crypto/libcrypto/crypto_sha512crypt.c
+ SSS_CRYPT_SOURCES = src/util/crypto/libcrypto/crypto_sha512crypt.c \
+ src/util/crypto/libcrypto/crypto_obfuscate.c
SSS_CRYPT_CFLAGS = $(CRYPTO_CFLAGS)
SSS_CRYPT_LIBS = $(CRYPTO_LIBS)
endif
@@ -678,6 +681,20 @@ util_tests_LDADD = \
$(CHECK_LIBS) \
libsss_test_common.la
+crypto_tests_SOURCES = \
+ $(SSSD_DEBUG_OBJ) \
+ $(SSS_CRYPT_SOURCES) \
+ src/tests/crypto-tests.c
+crypto_tests_CFLAGS = \
+ $(SSS_CRYPT_CFLAGS) \
+ $(AM_CFLAGS) \
+ $(CHECK_CFLAGS)
+crypto_tests_LDADD = \
+ $(SSS_CRYPT_LIBS) \
+ $(SSSD_LIBS) \
+ $(CHECK_LIBS) \
+ libsss_test_common.la
+
endif
stress_tests_SOURCES = \