mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
- 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:
parent
50546921ac
commit
e6ee41f932
5 changed files with 317 additions and 17 deletions
|
|
@ -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 $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue