From 69aaef8719c5cf33ed1c4090fa313ba281bf8a02 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 2 Aug 2010 16:53:28 +0200 Subject: 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. --- src/util/crypto/libcrypto/crypto_obfuscate.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/util/crypto/libcrypto/crypto_obfuscate.c (limited to 'src/util/crypto/libcrypto') 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 +#include + +#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; +} -- cgit