Avoid repeatedly scanning the list of extensions
authorMatt Caswell <matt@openssl.org>
Mon, 28 Nov 2016 09:31:59 +0000 (09:31 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 8 Dec 2016 17:18:56 +0000 (17:18 +0000)
Because extensions were keyed by type which is sparse, we were continually
scanning the list to find the one we wanted. The way we stored them also
had the side effect that we were running initialisers/finalisers in a
different oder to the parsers. In this commit we change things so that we
instead key on an index value for each extension.

Perl changes reviewed by Richard Levitte. Non-perl changes reviewed by Rich
Salz

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>

No differences found