Merge pull request #125 from hfmanson/master
authorvanrein <rick@openfortress.nl>
Mon, 29 Apr 2019 08:03:24 +0000 (10:03 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2019 08:03:24 +0000 (10:03 +0200)
show local and remote id after tlspool_starttls return

tool/chatcli.c
tool/chatsrv.c

index c2adeeb..abaefc8 100644 (file)
@@ -266,7 +266,7 @@ reconnect:
        } else {
                printf ("SIGCONT will trigger renegotiation of the TLS handshake\n");
        }
-       printf ("DEBUG: Local plainfd = %d\n", plainfd);
+       printf ("DEBUG: Local plainfd = %d, localid = %s, remoteid = %s\n", plainfd, tlsdata_cli.localid, tlsdata_cli.remoteid);
        runterminal (plainfd, &sigcont, &tlsdata_cli,
                        PIOF_STARTTLS_LOCALROLE_CLIENT | PIOF_STARTTLS_REMOTEROLE_SERVER | PIOF_STARTTLS_RENEGOTIATE,
                        "testcli@tlspool.arpa2.lab",
index 5287cd6..10918b1 100644 (file)
@@ -321,7 +321,7 @@ reconnect:
                } else {
                        printf ("SIGCONT will trigger renegotiation of the TLS handshake during a connection\n");
                }
-               printf ("DEBUG: Local plainfd = %d\n", plainfd);
+               printf ("DEBUG: Local plainfd = %d, localid = %s, remoteid = %s\n", plainfd, tlsdata_now.localid, tlsdata_now.remoteid);
                runterminal (plainfd, &sigcont, &tlsdata_now,
                                PIOF_STARTTLS_LOCALROLE_SERVER | PIOF_STARTTLS_REMOTEROLE_CLIENT | PIOF_STARTTLS_RENEGOTIATE,
                                "testsrv@tlspool.arpa2.lab",