mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-29 09:13:38 +08:00
Add TLCP demos
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -684,7 +684,7 @@ int tls12_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 = conn->protocol;
|
||||
@@ -1117,7 +1117,7 @@ int tls12_do_accept(TLS_CONNECT *conn)
|
||||
|
||||
conn->protocol = conn->protocol;
|
||||
|
||||
printf("Connection Established!\n\n");
|
||||
fprintf(stderr, "Connection Established!\n\n");
|
||||
ret = 1;
|
||||
|
||||
end:
|
||||
|
||||
@@ -1923,7 +1923,7 @@ int tls13_do_connect(TLS_CONNECT *conn)
|
||||
format_bytes(stderr, 0, 4, "client_write_iv", conn->client_write_iv, 12);
|
||||
format_print(stderr, 0, 0, "\n");
|
||||
*/
|
||||
printf("++++ Connection established\n");
|
||||
fprintf(stderr, "Connection established\n");
|
||||
|
||||
end:
|
||||
return 1;
|
||||
@@ -2369,7 +2369,7 @@ int tls13_do_accept(TLS_CONNECT *conn)
|
||||
format_print(stderr, 0, 0, "\n");
|
||||
*/
|
||||
|
||||
printf("Connection Established!\n\n");
|
||||
fprintf(stderr, "Connection Established!\n\n");
|
||||
|
||||
end:
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user