cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSL patch

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Wed, 16 Jun 2004 15:41:34 +0200

"Daniel Stenberg" <daniel-curl_at_haxx.se> said:

> Why does the ssl-data get passed in to the callback using the 'extra' argument
> and not just using the regular data pointer?

Because I wanted the 'extra' text (ssl_info) printed on same line as
CURLINFO_DATA_x would do:
=> Send data SSLv2, Client hello (1), 130 bytes (0x82)
0000: 01 03 01 00 69 00 00 00 10 00 00 39 00 00 38 00 ....i......9..8.

ssl_buf is the raw data and ssl_info is the prefix text. I could put both in a
new buffer (which my_trace would need to break apart again), but I just
saved a memcpy().

> Uh, and regarding your question about the lack of a Curl_debugf(), I think we
> should add such a function as soon as we feel a need for it. It would simply
> use a ... argument and build a buffer that it passes to the current
> Curl_debug() function.

Yes, but that mean another CURLOPT_DEBUFx? Or modify the existing?

--gv
Received on 2004-06-16