summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2021-07-15 13:20:22 +0200
committerJule Anger <janger@samba.org>2021-08-06 14:49:17 +0000
commit2a21ecf1f9192a3d0fdc84367728e5bf2b3399ee (patch)
tree7096e6e37ff48a8151fd8414ba18860ec2259952 /source3
parent13839721f067874be6b496335fe627877596da8a (diff)
downloadsamba-2a21ecf1f9192a3d0fdc84367728e5bf2b3399ee.tar.gz
s3:smbd: really support AES-256* in the server
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14764 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jul 20 16:13:28 UTC 2021 on sn-devel-184 (cherry picked from commit 0ac71061044e2ee47f4de3a319ad2386128066fc)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smb2_sesssetup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c
index 8cbad36cc7b..38049e8535f 100644
--- a/source3/smbd/smb2_sesssetup.c
+++ b/source3/smbd/smb2_sesssetup.c
@@ -346,6 +346,12 @@ static NTSTATUS smbd_smb2_auth_generic_return(struct smbXsrv_session *session,
case SMB2_ENCRYPTION_AES128_GCM:
nonce_size = gnutls_cipher_get_iv_size(GNUTLS_CIPHER_AES_128_GCM);
break;
+ case SMB2_ENCRYPTION_AES256_CCM:
+ nonce_size = SMB2_AES_128_CCM_NONCE_SIZE;
+ break;
+ case SMB2_ENCRYPTION_AES256_GCM:
+ nonce_size = gnutls_cipher_get_iv_size(GNUTLS_CIPHER_AES_256_GCM);
+ break;
default:
nonce_size = 0;
break;