File: boost-1.67.patch

package info (click to toggle)
sslsniff 0.8%2Bgit20111017-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 504 kB
  • sloc: cpp: 2,165; xml: 12; makefile: 8
file content (46 lines) | stat: -rw-r--r-- 1,772 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Description: Fix build with boost 1.67
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Last-Update: 2018-08-31

--- sslsniff-0.8.orig/SSLBridge.cpp
+++ sslsniff-0.8/SSLBridge.cpp
@@ -83,7 +83,7 @@ void SSLBridge::handshakeWithClient(Cert
   buildClientContext(clientContext, leaf, chain);
 
   SSL *clientSession = SSL_new(clientContext);
-  SSL_set_fd(clientSession, clientSocket->native());
+  SSL_set_fd(clientSession, clientSocket->native_handle());
 
   if (SSL_accept(clientSession) == 0) {
     Logger::logError("SSL Accept Failed!");
@@ -110,7 +110,7 @@ void SSLBridge::handshakeWithServer() {
   }
 
   SSL_set_connect_state(serverSession);
-  SSL_set_fd(serverSession, serverSocket->native());
+  SSL_set_fd(serverSession, serverSocket->native_handle());
   SSL_set_options(serverSession, SSL_OP_ALL);
   
   if (SSL_connect(serverSession) < 0) {
@@ -126,8 +126,8 @@ void SSLBridge::handshakeWithServer() {
 }
 
 void SSLBridge::shuttleData() {
-  struct pollfd fds[2] = {{clientSocket->native(), POLLIN | POLLPRI | POLLHUP | POLLERR, 0},
-			  {serverSocket->native(), POLLIN | POLLPRI | POLLHUP | POLLERR, 0}};
+  struct pollfd fds[2] = {{clientSocket->native_handle(), POLLIN | POLLPRI | POLLHUP | POLLERR, 0},
+			  {serverSocket->native_handle(), POLLIN | POLLPRI | POLLHUP | POLLERR, 0}};
 
   for (;;) {
     if (poll(fds, 2, -1) < 0)        return;
--- sslsniff-0.8.orig/util/Destination.cpp
+++ sslsniff-0.8/util/Destination.cpp
@@ -46,7 +46,7 @@ int Destination::getOriginalDestination(
 {
 #ifdef HAVE_NETFILTER
 	struct sockaddr_in serverAddr;
-	int fd   = (int)socket.native();
+	int fd   = (int)socket.native_handle();
 	int size = sizeof(serverAddr);
 
 	if (getsockopt(fd, SOL_IP, SO_ORIGINAL_DST, &serverAddr, (socklen_t*)&size) < 0) {