]> The Tcpdump Group git mirrors - libpcap/blobdiff - sslutils.c
CI: Call print_so_deps() on rpcapd in remote enabled build
[libpcap] / sslutils.c
index 8454ebd9fb1a2619e0e5e61aee40565bebf28d77..c75b53784bb9c384046d40281d1aa31243bfcccb 100644 (file)
@@ -30,9 +30,7 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #ifdef HAVE_OPENSSL
 #include <stdlib.h>
@@ -133,14 +131,14 @@ die:
        return -1;
 }
 
-SSL *ssl_promotion(int is_server, SOCKET s, char *errbuf, size_t errbuflen)
+SSL *ssl_promotion(int is_server, PCAP_SOCKET s, char *errbuf, size_t errbuflen)
 {
        if (ssl_init_once(is_server, 1, errbuf, errbuflen) < 0) {
                return NULL;
        }
 
        SSL *ssl = SSL_new(ctx); // TODO: also a DTLS context
-       SSL_set_fd(ssl, s);
+       SSL_set_fd(ssl, (int)s);
 
        if (is_server) {
                if (SSL_accept(ssl) <= 0) {