mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-28 00:39:30 +00:00
Added ":addTrustedRootCA()" to the httpc contexts, close #8, Added some values in ctr.
I didn't test :addTrustedRootCA(), but it's just a simple string-to-char+size function.
This commit is contained in:
parent
9db21c7831
commit
6a9fbbb133
6 changed files with 38 additions and 8 deletions
13
source/ctr.c
13
source/ctr.c
|
|
@ -189,6 +189,19 @@ int luaopen_ctr_lib(lua_State *L) {
|
|||
ctr_libs[i].load(L);
|
||||
lua_setfield(L, -2, ctr_libs[i].name);
|
||||
}
|
||||
|
||||
/***
|
||||
Running version of ctrµLua. This string contains the exact name of the last (pre-)release tag.
|
||||
@field version
|
||||
*/
|
||||
lua_pushstring(L, CTR_VERSION);
|
||||
lua_setfield(L, -2, "version");
|
||||
/***
|
||||
Running build of ctrµLua. This string contains the last commit hash.
|
||||
@field build
|
||||
*/
|
||||
lua_pushstring(L, CTR_BUILD);
|
||||
lua_setfield(L, -2, "build");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue