svn commit: samba r24993 - in branches: SAMBA_3_2/source/lib
SAMBA_3_2/source/rpc_parse SAMBA_3_2_0/source/lib
SAMBA_3_2_0/source/rpc_parse
vlendec at samba.org
vlendec at samba.org
Fri Sep 7 12:13:21 GMT 2007
Author: vlendec
Date: 2007-09-07 12:13:16 +0000 (Fri, 07 Sep 2007)
New Revision: 24993
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24993
Log:
Apply some const
Modified:
branches/SAMBA_3_2/source/lib/hmacmd5.c
branches/SAMBA_3_2/source/rpc_parse/parse_prs.c
branches/SAMBA_3_2_0/source/lib/hmacmd5.c
branches/SAMBA_3_2_0/source/rpc_parse/parse_prs.c
Changeset:
Modified: branches/SAMBA_3_2/source/lib/hmacmd5.c
===================================================================
--- branches/SAMBA_3_2/source/lib/hmacmd5.c 2007-09-07 11:47:03 UTC (rev 24992)
+++ branches/SAMBA_3_2/source/lib/hmacmd5.c 2007-09-07 12:13:16 UTC (rev 24993)
@@ -121,7 +121,8 @@
use the microsoft hmacmd5 init method because the key is 16 bytes.
************************************************************/
-void hmac_md5( unsigned char key[16], unsigned char *data, int data_len, unsigned char *digest)
+void hmac_md5( unsigned char key[16], const unsigned char *data, int data_len,
+ unsigned char *digest)
{
HMACMD5Context ctx;
hmac_md5_init_limK_to_64(key, 16, &ctx);
Modified: branches/SAMBA_3_2/source/rpc_parse/parse_prs.c
===================================================================
--- branches/SAMBA_3_2/source/rpc_parse/parse_prs.c 2007-09-07 11:47:03 UTC (rev 24992)
+++ branches/SAMBA_3_2/source/rpc_parse/parse_prs.c 2007-09-07 12:13:16 UTC (rev 24993)
@@ -1551,7 +1551,7 @@
uchar digest_final[16])
{
uchar whole_packet_digest[16];
- static uchar zeros[4];
+ static const uchar zeros[4] = { 0, };
struct MD5Context ctx3;
/* verfiy the signature on the packet by MD5 over various bits */
@@ -1580,7 +1580,7 @@
RPC_AUTH_SCHANNEL_CHK *verf,
uchar sealing_key[16])
{
- static uchar zeros[4];
+ static const uchar zeros[4] = { 0, };
uchar digest2[16];
uchar sess_kf0[16];
int i;
@@ -1607,7 +1607,7 @@
static void schannel_deal_with_seq_num(struct schannel_auth_struct *a,
RPC_AUTH_SCHANNEL_CHK *verf)
{
- static uchar zeros[4];
+ static const uchar zeros[4] = { 0, };
uchar sequence_key[16];
uchar digest1[16];
Modified: branches/SAMBA_3_2_0/source/lib/hmacmd5.c
===================================================================
--- branches/SAMBA_3_2_0/source/lib/hmacmd5.c 2007-09-07 11:47:03 UTC (rev 24992)
+++ branches/SAMBA_3_2_0/source/lib/hmacmd5.c 2007-09-07 12:13:16 UTC (rev 24993)
@@ -121,7 +121,8 @@
use the microsoft hmacmd5 init method because the key is 16 bytes.
************************************************************/
-void hmac_md5( unsigned char key[16], unsigned char *data, int data_len, unsigned char *digest)
+void hmac_md5( unsigned char key[16], const unsigned char *data, int data_len,
+ unsigned char *digest)
{
HMACMD5Context ctx;
hmac_md5_init_limK_to_64(key, 16, &ctx);
Modified: branches/SAMBA_3_2_0/source/rpc_parse/parse_prs.c
===================================================================
--- branches/SAMBA_3_2_0/source/rpc_parse/parse_prs.c 2007-09-07 11:47:03 UTC (rev 24992)
+++ branches/SAMBA_3_2_0/source/rpc_parse/parse_prs.c 2007-09-07 12:13:16 UTC (rev 24993)
@@ -1551,7 +1551,7 @@
uchar digest_final[16])
{
uchar whole_packet_digest[16];
- static uchar zeros[4];
+ static const uchar zeros[4] = { 0, };
struct MD5Context ctx3;
/* verfiy the signature on the packet by MD5 over various bits */
@@ -1580,7 +1580,7 @@
RPC_AUTH_SCHANNEL_CHK *verf,
uchar sealing_key[16])
{
- static uchar zeros[4];
+ static const uchar zeros[4] = { 0, };
uchar digest2[16];
uchar sess_kf0[16];
int i;
@@ -1607,7 +1607,7 @@
static void schannel_deal_with_seq_num(struct schannel_auth_struct *a,
RPC_AUTH_SCHANNEL_CHK *verf)
{
- static uchar zeros[4];
+ static const uchar zeros[4] = { 0, };
uchar sequence_key[16];
uchar digest1[16];
More information about the samba-cvs
mailing list