]> 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)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sun, 27 Sep 2020 18:09:54 +0000 (21:09 +0300)
commitd93bded6aa2852e681de2ed76fb43c415687af68
treef6dbe93044f62a390c90a7b51615c56ec1471041
parent8c27ee6e056257ab872598bb2a410b23f6c411a0
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>
(Merged from https://github.com/openssl/openssl/pull/13000)
ssl/s3_lib.c