Merge branch 'wip-http-swift' of https://github.com/l-mb/fio
authorJens Axboe <axboe@kernel.dk>
Thu, 16 Aug 2018 16:38:41 +0000 (10:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Aug 2018 16:38:41 +0000 (10:38 -0600)
* 'wip-http-swift' of https://github.com/l-mb/fio:
  engines/http: Add support for Swift storage backend

1  2 
engines/http.c

diff --cc engines/http.c
index 9d08bb4bc59643ba735493bd7f63982b3be40a93,f3dfab38fecc453ae35edd2d2e26ce347607f118..cb66ebe663ee7d28cbd06b0e4fc1e06049066bbb
@@@ -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;