Check-in [0d816bdcfc]
Overview
Comment:Include stdint or inttypes depending on platform
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | rfc-6234
Files: files | file ages | folders
SHA1:0d816bdcfc57cf07a213beb8fd598e05f8732b69
User & Date: rkeene on 2019-11-15 14:59:23
Other Links: manifest | tags
Context
2019-11-15
15:07
Integrated RFC 6234 SHA1 implementation changes Leaf check-in: fa9ae90eae user: rkeene tags: trunk, 0.7.10
14:59
Include stdint or inttypes depending on platform Closed-Leaf check-in: 0d816bdcfc user: rkeene tags: rfc-6234
08:52
Replace a non-free implementation of SHA1 hash from RFC-3174 by a free one from RFC-6234. check-in: 5504b5dd47 user: sergei tags: rfc-6234
Changes

Modified sha.h from [50b6da60c9] to [7ecfeff9c2].

    66     66    *
    67     67    *        USE_MODIFIED_MACROS - use alternate form of the SHA_Ch()
    68     68    *                         and SHA_Maj() macros that are equivalent
    69     69    *                         and potentially faster on many systems
    70     70    *
    71     71    */
    72     72   
    73         -#include <stdint.h>
           73  +#include "config.h"
           74  +
           75  +#ifdef HAVE_STDINT_H
           76  +#  include <stdint.h>
           77  +#elif defined(HAVE_INTTYPES_H)
           78  +#  include <inttypes.h>
           79  +#endif
    74     80   /*
    75     81    * If you do not have the ISO standard stdint.h header file, then you
    76     82    * must typedef the following:
    77     83    *    name              meaning
    78     84    *  uint64_t         unsigned 64-bit integer
    79     85    *  uint32_t         unsigned 32-bit integer
    80     86    *  uint8_t          unsigned 8-bit integer (i.e., unsigned char)