libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit cce6a8d7a786a52318487d5e110692be6e24990d
parent 9a3067c30fbd89609036d9fbdc1d93a7a8706abf
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed, 14 Sep 2022 13:22:32 +0300

test_sha{256,512_256}: minor fixes

Diffstat:
Msrc/microhttpd/test_sha256.c | 4++--
Msrc/microhttpd/test_sha512_256.c | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/test_sha256.c b/src/microhttpd/test_sha256.c @@ -82,12 +82,12 @@ static const struct data_unit1 data_units1[] = { 0x73, 0x82, 0xac, 0x92, 0xca, 0x37, 0xfd, 0x72, 0x8b, 0x0c, 0xd1, 0x6c, 0x55, 0xd5, 0x88, 0x98, 0x24, 0xfa, 0x16, 0xf2}}, - {D_STR_W_LEN ("abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA" + {D_STR_W_LEN ("abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA" \ "abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA"), {0x27, 0xd1, 0xe8, 0xbc, 0x6a, 0x79, 0x16, 0x83, 0x61, 0x73, 0xa9, 0xa8, 0x9b, 0xaf, 0xaf, 0xcf, 0x47, 0x4d, 0x09, 0xef, 0x6d, 0x50, 0x35, 0x12, 0x25, 0x72, 0xd8, 0x68, - 0xdc, 0x1f, 0xd2, 0xf4}}, + 0xdc, 0x1f, 0xd2, 0xf4}} }; static const size_t units1_num = sizeof(data_units1) / sizeof(data_units1[0]); diff --git a/src/microhttpd/test_sha512_256.c b/src/microhttpd/test_sha512_256.c @@ -80,7 +80,7 @@ static const struct data_unit1 data_units1[] = { "abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA"), {0xad, 0xe9, 0x5d, 0x55, 0x3b, 0x9e, 0x45, 0x69, 0xdb, 0x53, 0xa4, 0x04, 0x92, 0xe7, 0x87, 0x94, 0xff, 0xc9, 0x98, 0x5f, 0x93, 0x03, 0x86, 0x45, - 0xe1, 0x97, 0x17, 0x72, 0x7c, 0xbc, 0x31, 0x15}}, + 0xe1, 0x97, 0x17, 0x72, 0x7c, 0xbc, 0x31, 0x15}} }; static const size_t units1_num = sizeof(data_units1) / sizeof(data_units1[0]);