123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include "curlcheck.h"
- #include "curl_md5.h"
- static CURLcode unit_setup(void)
- {
- return CURLE_OK;
- }
- static void unit_stop(void)
- {
- }
- UNITTEST_START
- #ifndef CURL_DISABLE_CRYPTO_AUTH
- unsigned char output[16];
- unsigned char *testp = output;
- Curl_md5it(output, (const unsigned char *)"1");
- verify_memory(testp,
- "\xc4\xca\x42\x38\xa0\xb9\x23\x82\x0d\xcc\x50\x9a\x6f\x75\x84\x9b", 16);
- Curl_md5it(output, (const unsigned char *)"hello-you-fool");
- verify_memory(testp,
- "\x88\x67\x0b\x6d\x5d\x74\x2f\xad\xa5\xcd\xf9\xb6\x82\x87\x5f\x22", 16);
- #endif
- UNITTEST_STOP
|