mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-19 19:33:38 +08:00
Unify connection established print
This commit is contained in:
@@ -505,6 +505,7 @@ bad:
|
||||
fprintf(stderr, "%s: error\n", prog);
|
||||
goto end;
|
||||
}
|
||||
tls_connect_print(stderr, 0, 0, NULL, &conn);
|
||||
|
||||
if (certoutfile) {
|
||||
FILE *certoutfp;
|
||||
|
||||
@@ -491,6 +491,7 @@ bad:
|
||||
fprintf(stderr, "%s: error\n", prog);
|
||||
goto end;
|
||||
}
|
||||
tls_connect_print(stderr, 0, 0, NULL, &conn);
|
||||
|
||||
if (get) {
|
||||
snprintf(buf, sizeof(buf), "GET %s HTTP/1.1\r\nHost: %s\r\n\r\n", get, host);
|
||||
|
||||
@@ -823,7 +823,7 @@ bad:
|
||||
goto end;
|
||||
}
|
||||
|
||||
fprintf(stderr, "connected\n");
|
||||
tls_connect_print(stderr, 0, 0, NULL, &conn);
|
||||
fprintf(stderr, "\n");
|
||||
|
||||
if (get) {
|
||||
|
||||
Reference in New Issue
Block a user