diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-06-27 16:45:33 +1200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-06-27 12:54:23 +0000 |
commit | ad4505624e07f7a31c27a92c3867d343f2d9e9c3 (patch) | |
tree | 9cd75e96a1260af5a7d130ab837ba249a2e09c79 /libcli | |
parent | d5856b993e8ddd83f36097a5aba0026aa8e9d2ca (diff) | |
download | samba-ad4505624e07f7a31c27a92c3867d343f2d9e9c3.tar.gz |
lib/crypto: Use GnuTLS RC4 for samba_gnutls_arcfour_confounded_md5()
This allows Samba to use GnuTLS for drsuapi_{en,de}crypt_attribute_value()
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/drsuapi/repl_decrypt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libcli/drsuapi/repl_decrypt.c b/libcli/drsuapi/repl_decrypt.c index 5425eef9631..83275360c7d 100644 --- a/libcli/drsuapi/repl_decrypt.c +++ b/libcli/drsuapi/repl_decrypt.c @@ -88,7 +88,8 @@ static WERROR drsuapi_decrypt_attribute_value(TALLOC_CTX *mem_ctx, rc = samba_gnutls_arcfour_confounded_md5(gensec_skey, &confounder, - &dec_buffer); + &dec_buffer, + SAMBA_GNUTLS_DECRYPT); if (rc < 0) { result = gnutls_error_to_werror(rc, WERR_INTERNAL_ERROR); goto out; @@ -302,7 +303,8 @@ static WERROR drsuapi_encrypt_attribute_value(TALLOC_CTX *mem_ctx, rc = samba_gnutls_arcfour_confounded_md5(gensec_skey, &confounder, - &to_encrypt); + &to_encrypt, + SAMBA_GNUTLS_ENCRYPT); if (rc < 0) { result = gnutls_error_to_werror(rc, WERR_INTERNAL_ERROR); goto out; |