search for: 0b7b1a5

Displaying 2 results from an estimated 2 matches for "0b7b1a5".

2019 Sep 17
0
[PATCH libnbd 4/5] interop: Add -DTLS_MODE to the test.
...", "--exit-with-parent", "file", tmpfile' \ -DPSK=1 \ + -DTLS_MODE=LIBNBD_TLS_REQUIRE \ $(NULL) interop_nbdkit_tls_psk_CFLAGS = $(WARNINGS_CFLAGS) interop_nbdkit_tls_psk_LDADD = $(top_builddir)/lib/libnbd.la diff --git a/interop/interop.c b/interop/interop.c index 0b7b1a5..2772721 100644 --- a/interop/interop.c +++ b/interop/interop.c @@ -35,6 +35,13 @@ #define SIZE (1024*1024) +#if CERTS || PSK +#define TLS 1 +#ifndef TLS_MODE +#error "TLS_MODE must be defined when using CERTS || PSK" +#endif +#endif + int main (int argc, char *argv[]) { @@ -73,15...
2019 Sep 17
7
[PATCH libnbd 0/5] interop: Check that LIBNBD_TLS_ALLOW works against nbdkit.
I was a little surprised to find that LIBNBD_TLS_ALLOW worked out of the box, so I had to examine the logs whereupon I saw the magic message ... libnbd: debug: nbd1: nbd_connect_command: server refused TLS (policy), continuing with unencrypted connection I don't believe this path has ever been tested before. It's possible the tests could be improved if they actually checked for this