]> git.ipfire.org Git - thirdparty/openssl.git/commit
optimise ssl3_get_cipher_by_std_name()
authorhklaas <71921312+hklaas@users.noreply.github.com>
Sat, 26 Sep 2020 09:54:13 +0000 (10:54 +0100)
committerBenjamin Kaduk <bkaduk@akamai.com>
Thu, 29 Oct 2020 22:29:27 +0000 (15:29 -0700)
commitd5242203692812a57b2012083822f0c818ca55c1
treefdeba9ecaf8a4e4b4db58f85b59ea075f807e755
parent5795acffd8706e1cb584284ee5bb3a30986d0e75
optimise ssl3_get_cipher_by_std_name()

Return immediately on matched cipher. Without this patch the code only breaks out of the inner for loop, meaning for a matched TLS13 cipher the code will still loop through 160ish SSL3 ciphers.

CLA: trivial

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(cherry picked from commit d93bded6aa2852e681de2ed76fb43c415687af68)

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/13280)
ssl/s3_lib.c