* 'wip-http-swift' of https://github.com/l-mb/fio:
engines/http: Add support for Swift storage backend
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;