Support for ssl_peek function which was requested in the bug [1].

https://bugzilla.osafoundation.org/show_bug.cgi?id=13111