From: Jeremy Allison Date: Tue, 8 Mar 2022 03:43:10 +0000 (-0800) Subject: s3: smbd: Rename srv_check_sign_mac() -> smb1_srv_check_sign_mac(). X-Git-Tag: tevent-0.12.0~513 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=777fbb3753b97eb2570df974c74689300260cf36;p=thirdparty%2Fsamba.git s3: smbd: Rename srv_check_sign_mac() -> smb1_srv_check_sign_mac(). Signed-off-by: Jeremy Allison Signed-off-by: David Mulder --- diff --git a/source3/smbd/process.c b/source3/smbd/process.c index fdfcc954b54..aa71f339b7d 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -574,7 +574,7 @@ static NTSTATUS receive_smb_talloc(TALLOC_CTX *mem_ctx, } /* Check the incoming SMB signature. */ - if (!srv_check_sign_mac(xconn, *buffer, seqnum, trusted_channel)) { + if (!smb1_srv_check_sign_mac(xconn, *buffer, seqnum, trusted_channel)) { DEBUG(0, ("receive_smb: SMB Signature verification failed on " "incoming packet!\n")); return NT_STATUS_INVALID_NETWORK_RESPONSE; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 6acf70452b8..b6e40b2c727 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -52,7 +52,7 @@ struct smbXsrv_client; struct smbXsrv_connection; struct dcesrv_context; -bool srv_check_sign_mac(struct smbXsrv_connection *conn, +bool smb1_srv_check_sign_mac(struct smbXsrv_connection *conn, const char *inbuf, uint32_t *seqnum, bool trusted_channel); NTSTATUS srv_calculate_sign_mac(struct smbXsrv_connection *conn, char *outbuf, uint32_t seqnum); diff --git a/source3/smbd/signing.c b/source3/smbd/signing.c index c05c3a37b96..8869131374b 100644 --- a/source3/smbd/signing.c +++ b/source3/smbd/signing.c @@ -29,7 +29,7 @@ Called to validate an incoming packet from the client. ************************************************************/ -bool srv_check_sign_mac(struct smbXsrv_connection *conn, +bool smb1_srv_check_sign_mac(struct smbXsrv_connection *conn, const char *inbuf, uint32_t *seqnum, bool trusted_channel) {