Support for ssl_peek function

Here is wrapped ssl_peek() function as requested in:

https://bugzilla.osafoundation.org/show_bug.cgi?id=13111