- 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
This commit is contained in:
Paul Bakker 2012-05-19 08:43:48 +00:00
parent 50546921ac
commit e6ee41f932
5 changed files with 317 additions and 17 deletions

View file

@ -36,6 +36,10 @@ APPS = aes/aescrypt2 aes/crypt_and_hash \
x509/cert_app x509/crl_app \
x509/cert_req
ifdef OPENSSL
APPS += test/o_p_test
endif
.SILENT:
all: $(APPS)
@ -168,6 +172,10 @@ test/ssl_test: test/ssl_test.c ../library/libpolarssl.a
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 $@