Page 2 of 2
Re: SSL, HTTPS in Love2D
Posted: Wed Jun 20, 2018 4:41 pm
by Spar
Code: Select all
Error: error loading module 'ssl' from file '.\ssl.dll':
%1 is not a valid Win32 application.
-
Re: SSL, HTTPS in Love2D
Posted: Mon Jul 23, 2018 12:05 am
by paulclinger
>Error: error loading module 'ssl' from file '.\ssl.dll':
> %1 is not a valid Win32 application.
This likely means that you are loading binaries from ZeroBrane Studio (which are 32bit) from a 64bit application.
Re: SSL, HTTPS in Love2D
Posted: Mon Jul 23, 2018 6:34 pm
by paulclinger
@Spar, I compiled luasec for x64 on Windows with openssl 1.0.2o version; it's available here (along with luasocket also compiled for x64):
https://download.zerobrane.com/misc/lua ... -win64.zip
I'm also updating the build scripts for ZeroBrane Studio, so you can use them to compile the modules yourself (assuming you have mingw64 installed).
Re: SSL, HTTPS in Love2D
Posted: Mon Jul 23, 2018 6:40 pm
by paulclinger
One more thing; you MAY want to use my hack for ssl.lua to load the dependencies you need (otherwise you may be loading libeay32.dll and ssleay32.dll from a different location, which may be 32bit or incompatible with ssl.dll):
https://github.com/pkulchenko/ZeroBrane ... lua#L7-L15
Re: SSL, HTTPS in Love2D
Posted: Sat Oct 16, 2021 3:43 am
by Particle_G
Made a cross platform luasec lib for love2d. Compiled by love's luajit source code.
https://github.com/26F-Studio/love-luasec
This is a CMake project, should be easy to use.
also with demo:
local http = require"socket.http"
local https = require"https"
print(http.request("
http://www.bilibili.com"))
print(https.request("
https://www.bilibili.com"))
if there's no ssl, the second request would return a 301