mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Merge remote-tracking branch 'origin/master' into topic/seth/rdp
This commit is contained in:
commit
4737b235b6
18 changed files with 167 additions and 30 deletions
13
testing/btest/scripts/base/protocols/ssl/common_name.test
Normal file
13
testing/btest/scripts/base/protocols/ssl/common_name.test
Normal file
|
@ -0,0 +1,13 @@
|
|||
# This tests a normal SSL connection and the log it outputs.
|
||||
|
||||
# @TEST-EXEC: bro -r $TRACES/tls/tls-conn-with-extensions.trace %INPUT
|
||||
# @TEST-EXEC: bro -C -r $TRACES/tls/cert-no-cn.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
event x509_certificate(f: fa_file, cert_ref: opaque of x509, cert: X509::Certificate)
|
||||
{
|
||||
if ( cert?$cn )
|
||||
print cert$cn;
|
||||
else
|
||||
print "No CN";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue