fix indentation ssl.c
This commit is contained in:
@@ -48,9 +48,10 @@ static u_int32_t ndpi_ssl_refine_master_protocol(struct ndpi_detection_module_st
|
||||
|
||||
if(packet->tcp != NULL) {
|
||||
switch(protocol) {
|
||||
|
||||
case NDPI_PROTOCOL_SSL:
|
||||
case NDPI_PROTOCOL_SSL_NO_CERT:
|
||||
{
|
||||
{
|
||||
/*
|
||||
In case of SSL there are probably sub-protocols
|
||||
such as IMAPS that can be otherwise detected
|
||||
@@ -58,20 +59,21 @@ static u_int32_t ndpi_ssl_refine_master_protocol(struct ndpi_detection_module_st
|
||||
u_int16_t sport = ntohs(packet->tcp->source);
|
||||
u_int16_t dport = ntohs(packet->tcp->dest);
|
||||
|
||||
if((sport == 465) || (dport == 465)) protocol = NDPI_PROTOCOL_MAIL_SMTPS;
|
||||
if((sport == 465) || (dport == 465))
|
||||
protocol = NDPI_PROTOCOL_MAIL_SMTPS;
|
||||
else if((sport == 993) || (dport == 993)
|
||||
#ifdef NDPI_PROTOCOL_MAIL_IMAP
|
||||
|| (flow->l4.tcp.mail_imap_starttls)
|
||||
#endif
|
||||
) protocol = NDPI_PROTOCOL_MAIL_IMAPS;
|
||||
else if((sport == 995) || (dport == 995)) protocol = NDPI_PROTOCOL_MAIL_POPS;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if((protocol == NDPI_PROTOCOL_SSL_NO_CERT)
|
||||
&& is_skype_flow(ndpi_struct, flow)) {
|
||||
protocol = NDPI_PROTOCOL_SKYPE;
|
||||
protocol = NDPI_PROTOCOL_SKYPE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user