aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william@server.local> 2012-10-09 18:20:38 -0700
committerLibravatarLibravatar William Ahern <william@server.local> 2012-10-09 18:20:38 -0700
commit3b9acd41e0ed7efccb423ea50a4a14822fb5cd0d (patch)
treed44759a0cda9cd96f9aa161a455c678809a79a07
parenta9d25b6567fa1fb4bba8642b356089483768096c (diff)
downloadluaossl-3b9acd41e0ed7efccb423ea50a4a14822fb5cd0d.tar.gz
luaossl-3b9acd41e0ed7efccb423ea50a4a14822fb5cd0d.tar.bz2
luaossl-3b9acd41e0ed7efccb423ea50a4a14822fb5cd0d.zip
-n
install new modules
-rw-r--r--Makefile38
-rw-r--r--openssl.ssl.context.lua3
2 files changed, 40 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 481174e..d860856 100644
--- a/Makefile
+++ b/Makefile
@@ -36,12 +36,48 @@ openssl.o: openssl.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
-install: $(lua52cpath)/_openssl.so
+install: $(lua52cpath)/_openssl.so $(lua52path)/openssl/bignum.lua \
+ $(lua52path)/openssl/pubkey.lua $(lua52path)/openssl/x509.lua \
+ $(lua52path)/openssl/x509/name.lua $(lua52path)/openssl/x509/altname.lua \
+ $(lua52path)/openssl/x509/chain.lua $(lua52path)/openssl/x509/store.lua \
+ $(lua52path)/openssl/ssl/context.lua
$(lua52cpath)/_openssl.so: openssl.so
mkdir -p $(@D)
cp -p $< $@
+$(lua52path)/openssl/bignum.lua: openssl.bignum.lua
+ mkdir -p $(@D)
+ cp -p $< $@
+
+$(lua52path)/openssl/pubkey.lua: openssl.pubkey.lua
+ mkdir -p $(@D)
+ cp -p $< $@
+
+$(lua52path)/openssl/x509.lua: openssl.x509.lua
+ mkdir -p $(@D)
+ cp -p $< $@
+
+$(lua52path)/openssl/x509/name.lua: openssl.x509.name.lua
+ mkdir -p $(@D)
+ cp -p $< $@
+
+$(lua52path)/openssl/x509/altname.lua: openssl.x509.altname.lua
+ mkdir -p $(@D)
+ cp -p $< $@
+
+$(lua52path)/openssl/x509/chain.lua: openssl.x509.chain.lua
+ mkdir -p $(@D)
+ cp -p $< $@
+
+$(lua52path)/openssl/x509/store.lua: openssl.x509.store.lua
+ mkdir -p $(@D)
+ cp -p $< $@
+
+$(lua52path)/openssl/ssl/context.lua: openssl.ssl.context.lua
+ mkdir -p $(@D)
+ cp -p $< $@
+
.PHONY: clean clean~
diff --git a/openssl.ssl.context.lua b/openssl.ssl.context.lua
new file mode 100644
index 0000000..44a9163
--- /dev/null
+++ b/openssl.ssl.context.lua
@@ -0,0 +1,3 @@
+local ctx = require"_openssl.ssl.context"
+
+return ctx