zeek/src/analyzer/protocol/ssl/functions.bif
Johanna Amann c403a7f4e6 SCT: add validation of proofs for extensions and OCSP.
This does not yet work for certificates, because this requires some
changing the ASN.1 structure before validation (we need to extract the
tbscert and remove the SCT extension before).

API will change in the future.
2017-03-29 09:04:05 -07:00

17 lines
411 B
Text

%%{
#include "analyzer/protocol/ssl/SSL.h"
#include <openssl/x509.h>
%%}
## Sets if the SSL analyzer should consider the connection established (handshake
## finished succesfully).
##
## c: The SSL connection.
function set_ssl_established%(c: connection%): any
%{
analyzer::Analyzer* sa = c->FindAnalyzer("SSL");
if ( sa )
static_cast<analyzer::ssl::SSL_Analyzer*>(sa)->StartEncryption();
return 0;
%}