Merge remote-tracking branch 'origin/topic/bernhard/ssl_ciphers_vector'

BIT-1011 #merged

* origin/topic/bernhard/ssl_ciphers_vector:
  Change ciphers in changes ciphers from a set to a vector.
This commit is contained in:
Robin Sommer 2013-12-04 12:16:38 -08:00
commit 320f2d5ab6
9 changed files with 117 additions and 8 deletions

View file

@ -0,0 +1,9 @@
# @TEST-EXEC: bro -r $TRACES/tls1.2.trace %INPUT
# @TEST-EXEC: btest-diff .stdout
event ssl_client_hello(c: connection, version: count, possible_ts: time, client_random: string, session_id: string, ciphers: index_vec)
{
print fmt("Got %d cipher suites", |ciphers|);
for ( i in ciphers )
print SSL::cipher_desc[ciphers[i]];
}

View file

@ -1,7 +1,7 @@
# @TEST-EXEC: bro -r $TRACES/tls1.2.trace %INPUT
# @TEST-EXEC: btest-diff .stdout
event ssl_client_hello(c: connection, version: count, possible_ts: time, client_random: string, session_id: string, ciphers: count_set)
event ssl_client_hello(c: connection, version: count, possible_ts: time, client_random: string, session_id: string, ciphers: index_vec)
{
print client_random;
}