src/ssl.c

changeset 20
ad5eb4fd28f5
parent 19
45b7299e4746
child 21
c3755cb3d246
--- a/src/ssl.c	Fri Nov 05 23:11:38 2010 +0000
+++ b/src/ssl.c	Fri Nov 05 23:12:50 2010 +0000
@@ -377,42 +377,6 @@
   }
 }
 
-void luasec_push_asn1_objname(lua_State* L, ASN1_OBJECT *object, int no_name)
-{
-  char buffer[256];
-  int len = OBJ_obj2txt(buffer, sizeof(buffer), object, no_name);
-  lua_pushlstring(L, buffer, min(sizeof(buffer),len));
-}
-
-void luasec_push_asn1_string(lua_State* L, ASN1_STRING *string)
-{
-  if(string)
-    lua_pushlstring(L, (char*)ASN1_STRING_data(string), ASN1_STRING_length(string));
-  else
-    lua_pushnil(L);
-}
-
-int luasec_push_subtable(lua_State* L, int idx)
-{
-
-        lua_pushvalue(L, -1);
-        lua_gettable(L, idx-1);
-
-        if(lua_isnil(L, -1))
-        {
-        	lua_pop(L, 1);
-        	lua_newtable(L);
-        	lua_pushvalue(L, -2);
-        	lua_pushvalue(L, -2);
-        	lua_settable(L, idx-3);
-
-        	lua_replace(L, -2); /* Replace key with table */
-        	return 1;
-        }
-       	lua_replace(L, -2); /* Replace key with table */
-        return 0;
-}
-
 /**
  * Return the peer certificate.
  */

mercurial