summaryrefslogtreecommitdiff
path: root/lib/libssl/srtp.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2020-09-11 17:36:28 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2020-09-11 17:36:28 +0000
commit2a185a80331f057f9c985f3a46259b6acfbe8569 (patch)
tree244d51e078c625618d6628346f4cf945df907f63 /lib/libssl/srtp.h
parentc37c7e91d99f0d7a5ffae7a43dfa97a0e9a97edc (diff)
Remove cipher_list_by_id.
When parsing a cipher string, a cipher list is created, before being duplicated and sorted - the second copy being stored as cipher_list_by_id. This is done only so that a client can ensure that the cipher selected by a server is in the cipher list. This is pretty pointless given that most clients are short-lived and that we already had to iterate over the cipher list in order to build the client hello. Additionally, any update to the cipher list requires that cipher_list_by_id also be updated and kept in sync. Remove all of this and replace it with a simple linear scan - the overhead of duplicating and sorting the cipher list likely exceeds that of a simple linear scan over the cipher list (64 maximum, more typically ~9 or so). ok beck@ tb@
Diffstat (limited to 'lib/libssl/srtp.h')
0 files changed, 0 insertions, 0 deletions