This prepares the negotiation of signing algorithms in future.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14512
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
NTTIME system_time;
NTTIME start_time;
DATA_BLOB gss_blob;
+ uint16_t sign_algo;
uint16_t cipher;
} server;
return;
}
+ if (conn->protocol >= PROTOCOL_SMB2_24) {
+ conn->smb2.server.sign_algo = SMB2_SIGNING_AES128_CMAC;
+ } else {
+ conn->smb2.server.sign_algo = SMB2_SIGNING_HMAC_SHA256;
+ }
+
if (conn->protocol < PROTOCOL_SMB3_10) {
TALLOC_FREE(subreq);