SSL, HTTPS in Love2D

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Spar
Prole
Posts: 5
Joined: Mon Jun 18, 2018 7:40 pm

Re: SSL, HTTPS in Love2D

Post by Spar » Wed Jun 20, 2018 4:41 pm

pgimeno wrote:
Tue Jun 19, 2018 11:27 pm
Spar wrote:
Tue Jun 19, 2018 10:24 pm
pgimeno wrote:
Tue Jun 19, 2018 8:10 pm
Googling for luasec binaries gives a thread in this forum. viewtopic.php?t=76728
They're too old.
LMGTFY:

https://github.com/pkulchenko/ZeroBrane ... /bin/clibs

Code: Select all

Error: error loading module 'ssl' from file '.\ssl.dll':
        %1 is not a valid Win32 application.
-

paulclinger
Party member
Posts: 225
Joined: Thu Jun 28, 2012 8:46 pm

Re: SSL, HTTPS in Love2D

Post by paulclinger » Mon Jul 23, 2018 12:05 am

>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.

paulclinger
Party member
Posts: 225
Joined: Thu Jun 28, 2012 8:46 pm

Re: SSL, HTTPS in Love2D

Post by paulclinger » Mon Jul 23, 2018 6:34 pm

@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).

paulclinger
Party member
Posts: 225
Joined: Thu Jun 28, 2012 8:46 pm

Re: SSL, HTTPS in Love2D

Post by paulclinger » Mon Jul 23, 2018 6:40 pm

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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 16 guests