aboutsummaryrefslogtreecommitdiffstats
path: root/src/stls/stls_server_init_and_handshake.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-11-22 21:49:58 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-11-22 21:49:58 +0000
commitbae11b88357db72b19413cd05c62ac9242b9b597 (patch)
treee797f9d4ba09ece0b41cab424052915bee03052a /src/stls/stls_server_init_and_handshake.c
parent4fb917263ac30373cb3e5dfe3e207369eb238def (diff)
downloads6-networking-bae11b88357db72b19413cd05c62ac9242b9b597.tar.gz
Fix a few bugs. sbearssl appears to be working.
Diffstat (limited to 'src/stls/stls_server_init_and_handshake.c')
-rw-r--r--src/stls/stls_server_init_and_handshake.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stls/stls_server_init_and_handshake.c b/src/stls/stls_server_init_and_handshake.c
index 5d9c25c..5dd5284 100644
--- a/src/stls/stls_server_init_and_handshake.c
+++ b/src/stls/stls_server_init_and_handshake.c
@@ -77,7 +77,9 @@ struct tls *stls_server_init_and_handshake (int const *fds, uint32_t preoptions)
if (tls_accept_fds(ctx, &cctx, fds[0], fds[1]) < 0)
diectx(97, ctx, "tls_accept_fds") ;
tls_free(ctx) ;
+ strerr_warni1x("before handshake") ;
if (tls_handshake(cctx) < 0)
diectx(97, cctx, "perform SSL handshake") ;
+ strerr_warni1x("after handshake") ;
return cctx ;
}