libcli:smb: Add smb_encryption_setting_translate()
commit4bf8a667310d74561a0535655ece8745d19d1864
authorAndreas Schneider <asn@samba.org>
Tue, 26 May 2020 06:39:34 +0000 (26 08:39 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 19 Aug 2020 16:22:40 +0000 (19 16:22 +0000)
tree73f7e5cd5631d8855e1068f978ed86f9b3e4a422
parente524719010bf69e85681295358aeec6844c0748f
libcli:smb: Add smb_encryption_setting_translate()

Add encryption enum and function to avoid confusion when reading the
code.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/smb_util.h
libcli/smb/test_util_translate.c
libcli/smb/util.c