d->label = data_blob_string_const_null("SMBAppKey");
d->context = preauth_hash;
- } else if (protocol >= PROTOCOL_SMB2_24) {
+ } else if (protocol >= PROTOCOL_SMB3_00) {
struct smb2_signing_derivation *d = NULL;
d = &ds->__signing;
return;
}
- if (conn->protocol >= PROTOCOL_SMB2_24) {
+ if (conn->protocol >= PROTOCOL_SMB3_00) {
conn->smb2.server.sign_algo = SMB2_SIGNING_AES128_CMAC;
} else {
conn->smb2.server.sign_algo = SMB2_SIGNING_HMAC_SHA256;
session->smb2->should_encrypt = true;
}
- if (conn->protocol < PROTOCOL_SMB2_24) {
+ if (conn->protocol < PROTOCOL_SMB3_00) {
session->smb2->should_encrypt = false;
}
d = &derivation.signing;
d->label = data_blob_string_const_null("SMBSigningKey");
d->context = p;
- } else if (conn->protocol >= PROTOCOL_SMB2_24) {
+ } else if (conn->protocol >= PROTOCOL_SMB3_00) {
struct _derivation *d;
d = &derivation.signing;
return NT_STATUS_NO_MEMORY;
}
- if (conn->protocol >= PROTOCOL_SMB2_24) {
+ if (conn->protocol >= PROTOCOL_SMB3_00) {
struct _derivation *d = &derivation.signing;
status = smb2_key_derivation(channel_key, sizeof(channel_key),
return NT_STATUS_OK;
}
- if (session->conn->protocol < PROTOCOL_SMB2_24) {
+ if (session->conn->protocol < PROTOCOL_SMB3_00) {
return NT_STATUS_NOT_SUPPORTED;
}
uint16_t smb2cli_session_get_encryption_cipher(struct smbXcli_session *session)
{
- if (session->conn->protocol < PROTOCOL_SMB2_24) {
+ if (session->conn->protocol < PROTOCOL_SMB3_00) {
return 0;
}