Fixes for issues #40 -> #52

Implemented sub-protocol detection for SSL/HTTP/HTTPS
This commit is contained in:
Luca
2015-07-11 16:04:58 +02:00
parent 436af982fd
commit 2f347a33d8
18 changed files with 286 additions and 192 deletions
+3 -1
View File
@@ -307,7 +307,9 @@ int sslDetectProtocolFromCertificate(struct ndpi_detection_module_struct *ndpi_s
printf("***** [SSL] %s\n", certificate);
#endif
if(ndpi_match_string_subprotocol(ndpi_struct, flow, certificate, strlen(certificate)) != NDPI_PROTOCOL_UNKNOWN)
if(ndpi_match_host_subprotocol(ndpi_struct, flow, certificate,
strlen(certificate),
NDPI_PROTOCOL_SSL) != NDPI_PROTOCOL_UNKNOWN)
return(rc); /* Fix courtesy of Gianluca Costa <g.costa@xplico.org> */
#ifdef NDPI_PROTOCOL_TOR