Commit 01bde5c1 authored by Rémi Duraffort's avatar Rémi Duraffort

rtspreal: no need to compute the values of this array.

parent cbba447e
...@@ -276,18 +276,16 @@ static void calc_response (char *result, char *field) { ...@@ -276,18 +276,16 @@ static void calc_response (char *result, char *field) {
} }
static void calc_response_string (char *result, char *challenge) { static void calc_response_string (char *result, char *challenge) {
char field[128];
char field[128] = {
0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF,
0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
char zres[20]; char zres[20];
int i; int i;
/* initialize our field */
BE_32C (field, 0x01234567);
BE_32C ((field+4), 0x89ABCDEF);
BE_32C ((field+8), 0xFEDCBA98);
BE_32C ((field+12), 0x76543210);
BE_32C ((field+16), 0x00000000);
BE_32C ((field+20), 0x00000000);
/* calculate response */ /* calculate response */
call_hash(field, challenge, 64); call_hash(field, challenge, 64);
calc_response(zres,field); calc_response(zres,field);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment