summaryrefslogtreecommitdiff
path: root/src/util/crypto/libcrypto
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 /src/util/crypto/libcrypto
parente5ba9ef0d556a6195db692f87deedbefc2fbef17 (diff)
downloadsssd-69aaef8719c5cf33ed1c4090fa313ba281bf8a02.tar.gz
sssd-69aaef8719c5cf33ed1c4090fa313ba281bf8a02.tar.bz2
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 'src/util/crypto/libcrypto')
-rw-r--r--src/util/crypto/libcrypto/crypto_obfuscate.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/util/crypto/libcrypto/crypto_obfuscate.c b/src/util/crypto/libcrypto/crypto_obfuscate.c
new file mode 100644
index 00000000..026e993c
--- /dev/null
+++ b/src/util/crypto/libcrypto/crypto_obfuscate.c
@@ -0,0 +1,16 @@
+#include <talloc.h>
+#include <errno.h>
+
+#include "util/crypto/sss_crypto.h"
+
+int sss_password_encrypt(TALLOC_CTX *mem_ctx, const char *password, int plen,
+ enum obfmethod meth, char **obfpwd)
+{
+ return ENOSYS;
+}
+
+int sss_password_decrypt(TALLOC_CTX *mem_ctx, char *b64encoded,
+ char **password)
+{
+ return ENOSYS;
+}