aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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