summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/interop/openssl
diff options
context:
space:
mode:
authorbluhm <>2018-11-07 01:08:49 +0000
committerbluhm <>2018-11-07 01:08:49 +0000
commit72b3bb10734114d4b5795542387a8aeef8e24d10 (patch)
treea8266eebb496a361bb45e73920260a5f766bd201 /src/regress/lib/libssl/interop/openssl
parent85ff90e3521b98704f2fee667927fa140f56dd14 (diff)
downloadopenbsd-72b3bb10734114d4b5795542387a8aeef8e24d10.tar.gz
openbsd-72b3bb10734114d4b5795542387a8aeef8e24d10.tar.bz2
openbsd-72b3bb10734114d4b5795542387a8aeef8e24d10.zip
Test TLS interoperability between LibreSSL and OpenSSL.
Implement simple SSL client and server in C. Create four binaries by linking them with LibreSSL or OpenSSL. This way API compatibility is tested. Connect and accept with netcat to test protocol compatibility with libtls. Currently OpenSSL 1.0.2p from ports is used. Plan is to move to OpenSSL 1.1 and and test TLS 1.3. idea from beck@; help from jsing@
Diffstat (limited to 'src/regress/lib/libssl/interop/openssl')
-rw-r--r--src/regress/lib/libssl/interop/openssl/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/regress/lib/libssl/interop/openssl/Makefile b/src/regress/lib/libssl/interop/openssl/Makefile
new file mode 100644
index 0000000000..26095d0019
--- /dev/null
+++ b/src/regress/lib/libssl/interop/openssl/Makefile
@@ -0,0 +1,27 @@
1# $OpenBSD: Makefile,v 1.1.1.1 2018/11/07 01:08:49 bluhm Exp $
2
3.if ! exists(/usr/local/bin/eopenssl)
4regress:
5 # install openssl-1.0.2p from ports for interop tests
6 @echo SKIPPED
7.endif
8
9PROGS = client server
10CPPFLAGS = -I /usr/local/include/eopenssl
11LDFLAGS = -L /usr/local/lib/eopenssl
12LDADD = -lssl -lcrypto
13DPADD = /usr/local/lib/eopenssl/libssl.a \
14 /usr/local/lib/eopenssl/libcrypto.a
15LD_LIBRARY_PATH = /usr/local/lib/eopenssl
16
17.for p in ${PROGS}
18run-ldd-$p: ldd-$p.out
19 @echo '\n======== $@ ========'
20 # check that $p is linked with OpenSSL
21 grep -q /usr/local/lib/eopenssl/libcrypto.so ldd-$p.out
22 grep -q /usr/local/lib/eopenssl/libssl.so ldd-$p.out
23 # check that $p is not linked with LibreSSL
24 ! grep -v libc.so ldd-$p.out | grep /usr/lib/
25.endfor
26
27.include <bsd.regress.mk>