Add TLCP demos

This commit is contained in:
Zhi Guan
2022-08-01 15:58:39 +08:00
parent b0807931c9
commit ec94c930b3
9 changed files with 660 additions and 7 deletions

View File

@@ -595,7 +595,7 @@ int tlcp_do_connect(TLS_CONNECT *conn)
tls_send_alert(conn, TLS_alert_decrypt_error);
goto end;
}
printf("Connection established!\n");
fprintf(stderr, "Connection established!\n");
conn->protocol = TLS_protocol_tlcp;
@@ -1045,7 +1045,7 @@ int tlcp_do_accept(TLS_CONNECT *conn)
conn->protocol = TLS_protocol_tlcp;
tls_trace("Connection Established!\n\n");
fprintf(stderr, "Connection Established!\n\n");
ret = 1;
end: