Modified version of NetServices. Fixes an issue where connections failed should the HTTP response status line be received in a packet on its own prior to any further headers. Changes are made to the HTTPClient.cpp file's readHeaders method.

Committer:
andrewbonney
Date:
Fri Apr 08 14:39:41 2011 +0000
Revision:
0:ec559500a63f

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewbonney 0:ec559500a63f 1 /*
andrewbonney 0:ec559500a63f 2 ***********************************************************************
andrewbonney 0:ec559500a63f 3 ** md5.h -- header file for implementation of MD5 **
andrewbonney 0:ec559500a63f 4 ** RSA Data Security, Inc. MD5 Message-Digest Algorithm **
andrewbonney 0:ec559500a63f 5 ** Created: 2/17/90 RLR **
andrewbonney 0:ec559500a63f 6 ** Revised: 12/27/90 SRD,AJ,BSK,JT Reference C version **
andrewbonney 0:ec559500a63f 7 ** Revised (for MD5): RLR 4/27/91 **
andrewbonney 0:ec559500a63f 8 ** -- G modified to have y&~z instead of y&z **
andrewbonney 0:ec559500a63f 9 ** -- FF, GG, HH modified to add in last register done **
andrewbonney 0:ec559500a63f 10 ** -- Access pattern: round 2 works mod 5, round 3 works mod 3 **
andrewbonney 0:ec559500a63f 11 ** -- distinct additive constant for each step **
andrewbonney 0:ec559500a63f 12 ** -- round 4 added, working mod 7 **
andrewbonney 0:ec559500a63f 13 ***********************************************************************
andrewbonney 0:ec559500a63f 14 */
andrewbonney 0:ec559500a63f 15
andrewbonney 0:ec559500a63f 16 /*
andrewbonney 0:ec559500a63f 17 ***********************************************************************
andrewbonney 0:ec559500a63f 18 ** Copyright (C) 1990, RSA Data Security, Inc. All rights reserved. **
andrewbonney 0:ec559500a63f 19 ** **
andrewbonney 0:ec559500a63f 20 ** License to copy and use this software is granted provided that **
andrewbonney 0:ec559500a63f 21 ** it is identified as the "RSA Data Security, Inc. MD5 Message- **
andrewbonney 0:ec559500a63f 22 ** Digest Algorithm" in all material mentioning or referencing this **
andrewbonney 0:ec559500a63f 23 ** software or this function. **
andrewbonney 0:ec559500a63f 24 ** **
andrewbonney 0:ec559500a63f 25 ** License is also granted to make and use derivative works **
andrewbonney 0:ec559500a63f 26 ** provided that such works are identified as "derived from the RSA **
andrewbonney 0:ec559500a63f 27 ** Data Security, Inc. MD5 Message-Digest Algorithm" in all **
andrewbonney 0:ec559500a63f 28 ** material mentioning or referencing the derived work. **
andrewbonney 0:ec559500a63f 29 ** **
andrewbonney 0:ec559500a63f 30 ** RSA Data Security, Inc. makes no representations concerning **
andrewbonney 0:ec559500a63f 31 ** either the merchantability of this software or the suitability **
andrewbonney 0:ec559500a63f 32 ** of this software for any particular purpose. It is provided "as **
andrewbonney 0:ec559500a63f 33 ** is" without express or implied warranty of any kind. **
andrewbonney 0:ec559500a63f 34 ** **
andrewbonney 0:ec559500a63f 35 ** These notices must be retained in any copies of any part of this **
andrewbonney 0:ec559500a63f 36 ** documentation and/or software. **
andrewbonney 0:ec559500a63f 37 ***********************************************************************
andrewbonney 0:ec559500a63f 38 */
andrewbonney 0:ec559500a63f 39
andrewbonney 0:ec559500a63f 40 #ifndef MD5_H
andrewbonney 0:ec559500a63f 41 #define MD5_H
andrewbonney 0:ec559500a63f 42
andrewbonney 0:ec559500a63f 43 /* Data structure for MD5 (Message-Digest) computation */
andrewbonney 0:ec559500a63f 44 typedef struct {
andrewbonney 0:ec559500a63f 45 u32_t i[2]; /* number of _bits_ handled mod 2^64 */
andrewbonney 0:ec559500a63f 46 u32_t buf[4]; /* scratch buffer */
andrewbonney 0:ec559500a63f 47 unsigned char in[64]; /* input buffer */
andrewbonney 0:ec559500a63f 48 unsigned char digest[16]; /* actual digest after MD5Final call */
andrewbonney 0:ec559500a63f 49 } MD5_CTX;
andrewbonney 0:ec559500a63f 50
andrewbonney 0:ec559500a63f 51 void MD5Init ( MD5_CTX *mdContext);
andrewbonney 0:ec559500a63f 52 void MD5Update( MD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen);
andrewbonney 0:ec559500a63f 53 void MD5Final ( unsigned char hash[], MD5_CTX *mdContext);
andrewbonney 0:ec559500a63f 54
andrewbonney 0:ec559500a63f 55 #endif /* MD5_H */