[vlc-devel] commit: rtspreal: no need to compute the values of this array. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Dec 12 23:12:24 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Dec 12 23:12:00 2008 +0100| [01bde5c1ff06ef117af131c9f899d535790046db] | committer: Rémi Duraffort
rtspreal: no need to compute the values of this array.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01bde5c1ff06ef117af131c9f899d535790046db
---
modules/access/rtsp/real.c | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/modules/access/rtsp/real.c b/modules/access/rtsp/real.c
index 2309540..e225f88 100644
--- a/modules/access/rtsp/real.c
+++ b/modules/access/rtsp/real.c
@@ -276,18 +276,16 @@ static void calc_response (char *result, char *field) {
}
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];
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 */
call_hash(field, challenge, 64);
calc_response(zres,field);
More information about the vlc-devel
mailing list