- Added OpenSSL / PolarSSL compatibility script (tests/compat.sh) and example application (programs/ssl/o_p_test) (Requires OpenSSL)
- Handle encryption with private key and decryption with public key as per RFC 2313
diff --git a/programs/Makefile b/programs/Makefile
index 2f486cd..d28bc53 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -36,6 +36,10 @@
x509/cert_app x509/crl_app \
x509/cert_req
+ifdef OPENSSL
+APPS += test/o_p_test
+endif
+
.SILENT:
all: $(APPS)
@@ -168,6 +172,10 @@
echo " CC test/ssl_test.c"
$(CC) $(CFLAGS) $(OFLAGS) test/ssl_test.c $(LDFLAGS) -o $@
+test/o_p_test: test/o_p_test.c ../library/libpolarssl.a
+ echo " CC test/o_p_test.c"
+ $(CC) $(CFLAGS) $(OFLAGS) test/o_p_test.c $(LDFLAGS) -o $@ -lssl -lcrypto
+
util/strerror: util/strerror.c ../library/libpolarssl.a
echo " CC util/strerror.c"
$(CC) $(CFLAGS) $(OFLAGS) util/strerror.c $(LDFLAGS) -o $@