diff options
author | Jan Cholasta <jcholast@redhat.com> | 2012-02-03 22:10:17 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-02-07 00:26:57 +0100 |
commit | c7919a4fe41133cc466aa3d9431bfceee5784e7b (patch) | |
tree | ead68dc77f21c5c0667560073db23c2a4e728c44 /src/util/crypto/sss_crypto.h | |
parent | ed44814e0e7ff9f0ef7ffc98fab7d9542a7822df (diff) | |
download | sssd-c7919a4fe41133cc466aa3d9431bfceee5784e7b.tar.gz sssd-c7919a4fe41133cc466aa3d9431bfceee5784e7b.tar.bz2 sssd-c7919a4fe41133cc466aa3d9431bfceee5784e7b.zip |
UTIL: Provide base64 encoding and decoding functions
Diffstat (limited to 'src/util/crypto/sss_crypto.h')
-rw-r--r-- | src/util/crypto/sss_crypto.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/crypto/sss_crypto.h b/src/util/crypto/sss_crypto.h index 66394aeb..7b3e5e09 100644 --- a/src/util/crypto/sss_crypto.h +++ b/src/util/crypto/sss_crypto.h @@ -11,6 +11,14 @@ enum obfmethod { int test2(void); +char *sss_base64_encode(TALLOC_CTX *mem_ctx, + const unsigned char *in, + size_t insize); + +unsigned char *sss_base64_decode(TALLOC_CTX *mem_ctx, + const char *in, + size_t *outsize); + int sss_password_encrypt(TALLOC_CTX *mem_ctx, const char *password, int plen, enum obfmethod meth, char **obfpwd); |