bugfix: do_openssl() uses optional $data parameter; code improved
bugfix: _useopenssl() uses passed SSL version; adapted to changed messages in openssl 1.0.1*