diff options
author | bluhm <> | 2018-11-07 01:08:49 +0000 |
---|---|---|
committer | bluhm <> | 2018-11-07 01:08:49 +0000 |
commit | 72b3bb10734114d4b5795542387a8aeef8e24d10 (patch) | |
tree | a8266eebb496a361bb45e73920260a5f766bd201 /src/regress/lib/libssl/interop/util.h | |
parent | 85ff90e3521b98704f2fee667927fa140f56dd14 (diff) | |
download | openbsd-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/util.h')
-rw-r--r-- | src/regress/lib/libssl/interop/util.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/regress/lib/libssl/interop/util.h b/src/regress/lib/libssl/interop/util.h new file mode 100644 index 0000000000..2fdebf34b3 --- /dev/null +++ b/src/regress/lib/libssl/interop/util.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* $OpenBSD: util.h,v 1.1.1.1 2018/11/07 01:08:49 bluhm Exp $ */ | ||
2 | /* | ||
3 | * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org> | ||
4 | * | ||
5 | * Permission to use, copy, modify, and distribute this software for any | ||
6 | * purpose with or without fee is hereby granted, provided that the above | ||
7 | * copyright notice and this permission notice appear in all copies. | ||
8 | * | ||
9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | */ | ||
17 | |||
18 | void print_ciphers(STACK_OF(SSL_CIPHER) *); | ||
19 | void print_sockname(BIO *); | ||
20 | void print_peername(BIO *); | ||
21 | void err_ssl(int, const char *, ...); | ||