Add openconnect_sha1() function and use it instead of using OpenSSL directly