Is luasec a thing?

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.
User avatar
togFox
Party member
Posts: 764
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Is luasec a thing?

Post by togFox »

I happened across this tutorial page:

Code: Select all

http://notebook.kulchenko.com/programming/https-ssl-calls-with-lua-and-luasec
and a google search leads me to this luasec github page:

Code: Select all

https://github.com/brunoos/luasec
That github page has two lua files: https.lua and ssl.lua. Those files require things like:

ssl
ssl.core
ssl.x509
ssl.config
ltn12
socket.http
socket.url
socket

They're not included in the github and google search can't find them. Has anyone used luasec in love2d?
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
User avatar
zorg
Party member
Posts: 3435
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Is luasec a thing?

Post by zorg »

Löve 12.0 will have SSL/HTTPS support inbuilt, and you can technically include the missing stuff into 11.4 as well, although idk where the steps for that was posted.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: Is luasec a thing?

Post by Andlac028 »

zorg wrote: Sat Feb 11, 2023 3:20 pm although idk where the steps for that was posted.
See lua-https on wiki, where is usage of module and also compilation instructions for older love versions.
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Is luasec a thing?

Post by ivan »

zorg wrote: Sat Feb 11, 2023 3:20 pm Löve 12.0 will have SSL/HTTPS support inbuilt, and you can technically include the missing stuff into 11.4 as well, although idk where the steps for that was posted.
A few other people mentioned 12.0. Do you know where we could find a pre-release version of 12.0?
Going over the planned features from the wiki I really wish someday we would have:
- bcrypt
- zipArchive
- mysql
- location, camera and other phone features
User avatar
GVovkiv
Party member
Posts: 668
Joined: Fri Jan 15, 2021 7:29 am

Re: Is luasec a thing?

Post by GVovkiv »

ivan wrote: Sat Feb 11, 2023 8:43 pm
zorg wrote: Sat Feb 11, 2023 3:20 pm Löve 12.0 will have SSL/HTTPS support inbuilt, and you can technically include the missing stuff into 11.4 as well, although idk where the steps for that was posted.
A few other people mentioned 12.0. Do you know where we could find a pre-release version of 12.0?
Going over the planned features from the wiki I really wish someday we would have:
- bcrypt
- zipArchive
- mysql
- location, camera and other phone features
And json support out of box...
User avatar
Bigfoot71
Party member
Posts: 287
Joined: Fri Mar 11, 2022 11:07 am

Re: Is luasec a thing?

Post by Bigfoot71 »

ivan wrote: Sat Feb 11, 2023 8:43 pm A few other people mentioned 12.0. Do you know where we could find a pre-release version of 12.0?
Here: https://github.com/love2d/love/tree/12.0-development
No?
My avatar code for the curious :D V1, V2, V3.
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Is luasec a thing?

Post by ivan »

Yes, JSON would be good although it is fairly easy to implement using pure Lua.

Thank you Bigfoot, I will look into this!
User avatar
Bigfoot71
Party member
Posts: 287
Joined: Fri Mar 11, 2022 11:07 am

Re: Is luasec a thing?

Post by Bigfoot71 »

For JSON there is already a pure Lua library that works very well: https://github.com/rxi/json.lua
Personally I don't really see why it should be implemented in Love2D, unless something escapes me.
My avatar code for the curious :D V1, V2, V3.
User avatar
togFox
Party member
Posts: 764
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: Is luasec a thing?

Post by togFox »

Thanks for the reference to 12.0.

I'm not set up to compile 12 or 'hack' 11.4.

So no one uses luasec?
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
User avatar
slime
Solid Snayke
Posts: 3129
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Is luasec a thing?

Post by slime »

ivan wrote: Sat Feb 11, 2023 8:43 pm Going over the planned features from the wiki I really wish someday we would have:
- bcrypt
- zipArchive
- mysql
These are generally out of the scope of a game API I think - although nothing's stopping you from packaging libraries for those with your own game. That being said you can already access the directory structure of a zip file (in memory or on your hard drive), via love.filesystem.mount.
togFox wrote: Sat Feb 11, 2023 10:02 pm I'm not set up to compile 12 or 'hack' 11.4.

So no one uses luasec?
luasec is notoriously annoying to build, for various platforms.

You can download automatically created builds of love 12 through the love repository's Github Actions page. For example a recent one is here https://github.com/love2d/love/actions/ ... #artifacts

For love 11, there's zero hacking involved to get lua-https working for it. It's just a lua C module, nothing special.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 17 guests