From f732e03ad39413c31ddb1876725f772ac1c97de7 Mon Sep 17 00:00:00 2001 From: shranet Date: Mon, 16 Dec 2019 14:32:09 +0500 Subject: [PATCH] Link error fixed on Windows --- lib/resty/hmac.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resty/hmac.lua b/lib/resty/hmac.lua index 5143ac0..f7419a9 100644 --- a/lib/resty/hmac.lua +++ b/lib/resty/hmac.lua @@ -6,7 +6,7 @@ local ffi_new = ffi.new local ffi_str = ffi.string local ffi_gc = ffi.gc local ffi_typeof = ffi.typeof -local C = ffi.C +local C = (ffi.os=="Windows" and ffi.load'libeay32' or ffi.C) local setmetatable = setmetatable local error = error