fix bug in some versions of openssl call to get sessionid