From: Jeremy Allison Date: Tue, 8 Mar 2022 03:44:18 +0000 (-0800) Subject: s3: smbd: Rename srv_calculate_sign_mac() -> smb1_srv_calculate_sign_mac(). X-Git-Tag: tevent-0.12.0~512 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa9c48ae4dd69c80c47cd4684deff04339bd22ea;p=thirdparty%2Fsamba.git s3: smbd: Rename srv_calculate_sign_mac() -> smb1_srv_calculate_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 aa71f339b7d..2bacc3671c1 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -234,7 +234,7 @@ bool srv_send_smb(struct smbXsrv_connection *xconn, char *buffer, NTSTATUS status; /* Sign the outgoing packet if required. */ - status = srv_calculate_sign_mac(xconn, buf_out, seqnum); + status = smb1_srv_calculate_sign_mac(xconn, buf_out, seqnum); if (!NT_STATUS_IS_OK(status)) { DBG_ERR("Failed to calculate signing mac: %s\n", nt_errstr(status)); diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index b6e40b2c727..60bab2835b9 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -54,7 +54,7 @@ struct dcesrv_context; 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, +NTSTATUS smb1_srv_calculate_sign_mac(struct smbXsrv_connection *conn, char *outbuf, uint32_t seqnum); void srv_cancel_sign_response(struct smbXsrv_connection *conn); bool srv_init_signing(struct smbXsrv_connection *conn); diff --git a/source3/smbd/signing.c b/source3/smbd/signing.c index 8869131374b..c7be0065eb8 100644 --- a/source3/smbd/signing.c +++ b/source3/smbd/signing.c @@ -75,7 +75,7 @@ bool smb1_srv_check_sign_mac(struct smbXsrv_connection *conn, Called to sign an outgoing packet to the client. ************************************************************/ -NTSTATUS srv_calculate_sign_mac(struct smbXsrv_connection *conn, +NTSTATUS smb1_srv_calculate_sign_mac(struct smbXsrv_connection *conn, char *outbuf, uint32_t seqnum) { uint8_t *outhdr;