mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fix #289: Fixed build problem with Visual C++
This commit is contained in:
parent
72b20c08da
commit
d2c7b447d5
1 changed files with 2 additions and 2 deletions
|
@ -2285,11 +2285,11 @@ inline std::string message_digest(const std::string &s, Init init,
|
|||
size_t digest_length) {
|
||||
using namespace std;
|
||||
|
||||
unsigned char md[digest_length];
|
||||
std::vector<unsigned char> md(digest_length, 0);
|
||||
CTX ctx;
|
||||
init(&ctx);
|
||||
update(&ctx, s.data(), s.size());
|
||||
final(md, &ctx);
|
||||
final(md.data(), &ctx);
|
||||
|
||||
stringstream ss;
|
||||
for (auto c : md) {
|
||||
|
|
Loading…
Reference in a new issue