This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

ssl_print_string in Wireshark

0

I'd like to know what the function does in line 1165 of this link. it is ssl_print_string(a, b) function in packe-ssl-utils.h file. I've seen it is been called in several places where it was given a string as a first argument and a variable as the second one. However, I'm not able to tell from the context what it does and not able to find its body (if it has one!).

Thanks!

asked 10 Nov '14, 09:57

flora's gravatar image

flora
156313338
accept rate: 100%


One Answer:

1

That definition is simply a macro definition that compiles to nothing when SSL_DECRYPT_DEBUG isn't defined. When it is defined the function is defined as an external one, but I can't find where the external function comes from.

answered 10 Nov '14, 11:02

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Thanks for your quick response and useful explanation. It helps a lot and I found the definition for the external function. It is in the packet-ssl-utils.c. It just prints to the ssl debug file.

(10 Nov '14, 11:44) flora

OK, somehow I missed that in the grep output.

(11 Nov '14, 02:51) grahamb ♦