From ad4505624e07f7a31c27a92c3867d343f2d9e9c3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 27 Jun 2019 16:45:33 +1200 Subject: 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 Reviewed-by: Andreas Schneider --- lib/crypto/gnutls_helpers.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/crypto/gnutls_helpers.h') diff --git a/lib/crypto/gnutls_helpers.h b/lib/crypto/gnutls_helpers.h index fedbb5307e0..b8288c25649 100644 --- a/lib/crypto/gnutls_helpers.h +++ b/lib/crypto/gnutls_helpers.h @@ -37,8 +37,14 @@ WERROR _gnutls_error_to_werror(int gnutls_rc, _gnutls_error_to_werror(gnutls_rc, blocked_werr, \ __FUNCTION__, __location__) +enum samba_gnutls_direction { + SAMBA_GNUTLS_ENCRYPT, + SAMBA_GNUTLS_DECRYPT +}; + int samba_gnutls_arcfour_confounded_md5(const DATA_BLOB *key_input1, const DATA_BLOB *key_input2, - DATA_BLOB *data); + DATA_BLOB *data, + enum samba_gnutls_direction encrypt); #endif /* _GNUTLS_HELPERS_H */ -- cgit v1.2.1