/* Get the cipher */
debug_print(_("SSL connection using %s\n"),
- SSL_get_cipher(sockinfo->ssl));
+ SSL_get_cipher(ssl));
/* Get server's certificate (note: beware of dynamic allocation) */
if ((server_cert = SSL_get_peer_certificate(ssl)) == NULL) {