masqmail

diff src/md5/hmactest.c @ 366:41958685480d

Switched to `type *name' style Andrew Koenig's ``C Traps and Pitfalls'' (Ch.2.1) convinced me that it is best to go with the way C had been designed. The ``declaration reflects use'' concept conflicts with a ``type* name'' notation. Hence I switched.
author markus schnalke <meillo@marmaro.de>
date Thu, 22 Sep 2011 15:07:40 +0200
parents 38f86ae6171b
children b27f66555ba8
line diff
     1.1 --- a/src/md5/hmactest.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/md5/hmactest.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -62,7 +62,7 @@
     1.4  	puts("---- Following are the test vectors from RFC 2104");
     1.5  
     1.6  
     1.7 -	char* d01 = "Hi There";
     1.8 +	char *d01 = "Hi There";
     1.9  	char k01[16];
    1.10  	for (i=0; i<16; i++) {
    1.11  		k01[i] = 0x0b;
    1.12 @@ -75,8 +75,8 @@
    1.13  	printf(" (was computed)\n\n");
    1.14  
    1.15  
    1.16 -	char* d02 = "what do ya want for nothing?";
    1.17 -	char* k02 = "Jefe";
    1.18 +	char *d02 = "what do ya want for nothing?";
    1.19 +	char *k02 = "Jefe";
    1.20  	printf("750c783e6ab0b503eaa86e310a5db738 (should be)\n");
    1.21  	hmac_md5(d02, strlen(d02), k02, strlen(k02), digest);
    1.22  	for (i = 0; i < 16; i++) {