aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william@25tandclement.com> 2014-08-14 20:31:49 -0700
committerLibravatarLibravatar william <william@25tandclement.com> 2014-08-14 20:31:49 -0700
commit0588f3ad4981ea5282d4b423654e87c0170c941e (patch)
tree82753dbd084643ea7bcdddfe5c4544cd336cf8b0 /src
parent9157308b90ea7df405ed9b22f1801f3f70f2e30b (diff)
downloadluaossl-0588f3ad4981ea5282d4b423654e87c0170c941e.tar.gz
luaossl-0588f3ad4981ea5282d4b423654e87c0170c941e.tar.bz2
luaossl-0588f3ad4981ea5282d4b423654e87c0170c941e.zip
remove unused variables and function
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 7985b1f..757bbf0 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -857,8 +857,6 @@ static int pk_new(lua_State *L) {
};
unsigned i;
- type = OBJ_sn2nid(id);
-
if (NID_undef == (type = EVP_PKEY_type(OBJ_sn2nid(id)))) {
for (i = 0; i < countof(types); i++) {
if (strieq(id, types[i].sn)) {
@@ -1589,13 +1587,6 @@ static int gn_interpose(lua_State *L) {
} /* gn_interpose() */
-static int gn_setCritical(lua_State *L) {
- GENERAL_NAMES *gens = checksimple(L, 1, X509_GENS_CLASS);
-
- return 0;
-} /* gn_setCritical() */
-
-
static int gn_checktype(lua_State *L, int index) {
static const struct { int type; const char *name; } table[] = {
{ GEN_EMAIL, "RFC822Name" },
@@ -1701,7 +1692,7 @@ static int gn__next(lua_State *L) {
while (i < n) {
GENERAL_NAME *name;
- const char *tag, *txt;
+ const char *txt;
size_t len;
union { struct in_addr in; struct in6_addr in6; } ip;
char buf[INET6_ADDRSTRLEN + 1];
@@ -1727,7 +1718,6 @@ static int gn__next(lua_State *L) {
break;
case GEN_IPADD:
- tag = "IP";
txt = (char *)M_ASN1_STRING_data(name->d.iPAddress);
len = M_ASN1_STRING_length(name->d.iPAddress);
@@ -4234,7 +4224,7 @@ static void md_update_(lua_State *L, EVP_MD_CTX *ctx, int from, int to) {
static int md_update(lua_State *L) {
EVP_MD_CTX *ctx = luaL_checkudata(L, 1, DIGEST_CLASS);
- int i, top = lua_gettop(L);
+ int i;
md_update_(L, ctx, 2, lua_gettop(L));