From: Jens Axboe Date: Thu, 16 Aug 2018 16:38:41 +0000 (-0600) Subject: Merge branch 'wip-http-swift' of https://github.com/l-mb/fio X-Git-Tag: fio-3.9~29 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=31b78ecd1fb6b755d51e3a17031819adc5891bc4;p=fio.git Merge branch 'wip-http-swift' of https://github.com/l-mb/fio * 'wip-http-swift' of https://github.com/l-mb/fio: engines/http: Add support for Swift storage backend --- 31b78ecd1fb6b755d51e3a17031819adc5891bc4 diff --cc engines/http.c index 9d08bb4b,f3dfab38..cb66ebe6 --- a/engines/http.c +++ b/engines/http.c @@@ -204,10 -254,15 +254,18 @@@ static char *_gen_hex_sha256(const cha return _conv_hex(hash, SHA256_DIGEST_LENGTH); } + static char *_gen_hex_md5(const char *p, size_t len) + { + unsigned char hash[MD5_DIGEST_LENGTH]; + + MD5((unsigned char*)p, len, hash); + return _conv_hex(hash, MD5_DIGEST_LENGTH); + } + static void _hmac(unsigned char *md, void *key, int key_len, char *data) { +#ifndef CONFIG_HAVE_OPAQUE_HMAC_CTX + HMAC_CTX _ctx; +#endif HMAC_CTX *ctx; unsigned int hmac_len;