Commit 71b95f0770a31bcef4ba9210264c9f8883bb38b5
1 parent
9cdc159d
Exists in
master
and in
3 other branches
Adding curl info on trace window.
Showing
1 changed file
with
9 additions
and
9 deletions
Show diff stats
src/lib3270/ssl/linux/getcrl.c
... | ... | @@ -148,15 +148,15 @@ static size_t internal_curl_write_callback(void *contents, size_t size, size_t n |
148 | 148 | return 0; |
149 | 149 | } |
150 | 150 | |
151 | -#ifdef DEBUG | |
152 | - lib3270_trace_data( | |
153 | - data->hSession, | |
154 | - "Received", | |
155 | - (const char *) contents, | |
156 | - realsize | |
157 | - ); | |
158 | - | |
159 | -#endif // DEBUG | |
151 | + if(lib3270_get_toggle(data->hSession,LIB3270_TOGGLE_SSL_TRACE)) | |
152 | + { | |
153 | + lib3270_trace_data( | |
154 | + data->hSession, | |
155 | + "Received", | |
156 | + (const char *) contents, | |
157 | + realsize | |
158 | + ); | |
159 | + } | |
160 | 160 | |
161 | 161 | memcpy(&(data->contents[data->length]),contents,realsize); |
162 | 162 | data->length += realsize; | ... | ... |