appIdApi.c (snort-2.9.16.1) | : | appIdApi.c (snort-2.9.17) | ||
---|---|---|---|---|
skipping to change at line 104 | skipping to change at line 104 | |||
} | } | |||
tAppId getFwReferredAppId(struct AppIdData *appIdData) | tAppId getFwReferredAppId(struct AppIdData *appIdData) | |||
{ | { | |||
if (appIdData) | if (appIdData) | |||
return fwPickReferredPayloadAppId(appIdData); | return fwPickReferredPayloadAppId(appIdData); | |||
return APP_ID_NONE; | return APP_ID_NONE; | |||
} | } | |||
char* getTlsHost(struct AppIdData *appIdData) | char* getTlsHost(struct AppIdData *appIdData) | |||
{ | { | |||
if (appIdData && appIdData->tsession) | if (appIdData && appIdData->tsession) | |||
return appIdData->tsession->tls_host; | { | |||
switch (appIdData->tsession->matched_tls_type) | ||||
{ | ||||
case MATCHED_TLS_HOST: | ||||
return appIdData->tsession->tls_host; | ||||
case MATCHED_TLS_FIRST_SAN: | ||||
return appIdData->tsession->tls_first_san; | ||||
case MATCHED_TLS_CNAME: | ||||
return appIdData->tsession->tls_cname; | ||||
default: | ||||
/*tls_orgUnit is intentionally avoided from being | ||||
returned as an URL here, even if its the matching one*/ | ||||
if (appIdData->tsession->tls_host) | ||||
return appIdData->tsession->tls_host; | ||||
else if (appIdData->tsession->tls_first_san) | ||||
return appIdData->tsession->tls_first_san; | ||||
else if (appIdData->tsession->tls_cname) | ||||
return appIdData->tsession->tls_cname; | ||||
return NULL; | ||||
} | ||||
} | ||||
return NULL; | return NULL; | |||
} | } | |||
SFGHASH* getFwMultiPayloadList(struct AppIdData *appIdData) | SFGHASH* getFwMultiPayloadList(struct AppIdData *appIdData) | |||
{ | { | |||
if (appIdData) | if (appIdData) | |||
return fwPickMultiPayloadList(appIdData); | return fwPickMultiPayloadList(appIdData); | |||
return NULL; | return NULL; | |||
} | } | |||
bool isSessionSslDecrypted(struct AppIdData *appIdData) | bool isSessionSslDecrypted(struct AppIdData *appIdData) | |||
{ | { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 21 lines changed or added |