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

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%


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.

permanent link

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 ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×319
×158
×11

question asked: 10 Nov '14, 09:57

question was seen: 962 times

last updated: 11 Nov '14, 02:51

p​o​w​e​r​e​d by O​S​Q​A