--- a/lm_ssl.c Sat Mar 05 15:45:33 2016 +0200
+++ b/lm_ssl.c Sat Mar 05 15:51:12 2016 +0200
@@ -172,12 +172,14 @@
/// Set path to trusted ssl certificates. Argument must be a name of a PEM file
/// or a name of directory with hashed certificates.
/// A: string (path)
+/// R: lm ssl object
static int ca_path_lm_ssl (lua_State *L)
{
llm_ssl_t *object = luaL_checklm_ssl (L, 1);
const gchar *path = luaL_checkstring (L, 2);
lm_ssl_set_ca (object -> ssl, path);
- return 0;
+ lua_pop (L, 1);
+ return 1;
}
#endif
@@ -186,12 +188,14 @@
/// Set list of allowed ciphers (colon-separated). Names may vary depending on ssl
/// implementation in use.
/// A: string (cipher list)
+/// R: lm ssl object
static int cipher_list_lm_ssl (lua_State *L)
{
llm_ssl_t *object = luaL_checklm_ssl (L, 1);
const gchar *list = luaL_checkstring (L, 2);
lm_ssl_set_cipher_list (object -> ssl, list);
- return 0;
+ lua_pop (L, 1);
+ return 1;
}
#endif