Added a new function for openssl telnet interface.
Did some work.