Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Adapted to remove Samba AES support
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
}
}
- /*
- * For now we preferr CCM because our implementation
- * is faster than GCM, see bug #11451.
- */
- if (aes_128_ccm_supported) {
- xconn->smb2.server.cipher = SMB2_ENCRYPTION_AES128_CCM;
- } else if (aes_128_gcm_supported) {
+ if (aes_128_gcm_supported) {
xconn->smb2.server.cipher = SMB2_ENCRYPTION_AES128_GCM;
+ } else if (aes_128_ccm_supported) {
+ xconn->smb2.server.cipher = SMB2_ENCRYPTION_AES128_CCM;
}
SSVAL(buf, 0, 1); /* ChiperCount */