tls/ja3: add way to check active config

pull/4289/head
Victor Julien 6 years ago
parent 788c9f8f11
commit 29dcd98ed1

@ -2996,6 +2996,16 @@ void SSLEnableJA3(void)
#endif
}
bool SSLJA3IsEnabled(void)
{
#ifdef HAVE_NSS
if (SC_ATOMIC_GET(ssl_config.enable_ja3)) {
return true;
}
#endif
return false;
}
/***************************************Unittests******************************/
#ifdef UNITTESTS

@ -257,5 +257,6 @@ void SSLParserRegisterTests(void);
void SSLSetEvent(SSLState *ssl_state, uint8_t event);
void SSLVersionToString(uint16_t, char *);
void SSLEnableJA3(void);
bool SSLJA3IsEnabled(void);
#endif /* __APP_LAYER_SSL_H__ */

Loading…
Cancel
Save