Have OpenSSL::Test::Utils::available_protocols load configdata as well
Otherwise, it could typically always return an empty list, since it's often called first if at all. Reviewed-by: Ben Laurie <ben@openssl.org>
This commit is contained in:
parent
d9f7772674
commit
1fff160bc0
@ -130,6 +130,7 @@ sub disabled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub available_protocols {
|
sub available_protocols {
|
||||||
|
load_configdata() unless $configdata_loaded;
|
||||||
my $protocol_class = shift;
|
my $protocol_class = shift;
|
||||||
if (exists $available_protocols{lc $protocol_class}) {
|
if (exists $available_protocols{lc $protocol_class}) {
|
||||||
return @{$available_protocols{lc $protocol_class}}
|
return @{$available_protocols{lc $protocol_class}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user