Nmap Development mailing list archives
'SSL_get_peer_certificate' : cannot convert param from 'nsock_ssl' to 'const SSL *'
From: jah <jah () zadkiel plus com>
Date: Wed, 03 Jun 2009 04:43:51 +0100
Hi folks, Got the following error building ncat on windows: Compiling... ncat_connect.c .\ncat_connect.c(110) : error C2664: 'SSL_get_peer_certificate' : cannot convert parameter 1 from 'nsock_ssl' to 'const SSL *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast The attached just casts the parameter to SSL_get_peer_certificate() to SSL* jah
--- ncat_connect.c.orig 2009-06-03 04:20:32.222625000 +0100 +++ ncat_connect.c 2009-06-03 04:20:11.660125000 +0100 @@ -107,7 +107,7 @@ loguser("SSL connection to %s:%hu.", inet_socktop(&peer), nsi_peerport(nsi)); - cert = SSL_get_peer_certificate(nsi_getssl(nsi)); + cert = SSL_get_peer_certificate((SSL *) nsi_getssl(nsi)); assert(cert != NULL); subject = X509_get_subject_name(cert);
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- 'SSL_get_peer_certificate' : cannot convert param from 'nsock_ssl' to 'const SSL *' jah (Jun 02)
- Re: 'SSL_get_peer_certificate' : cannot convert param from 'nsock_ssl' to 'const SSL *' David Fifield (Jun 02)