Commit 1fff160b authored by Richard Levitte's avatar Richard Levitte
Browse files

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: default avatarBen Laurie <ben@openssl.org>
parent d9f77726
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -130,6 +130,7 @@ sub disabled {
}

sub available_protocols {
    load_configdata() unless $configdata_loaded;
    my $protocol_class = shift;
    if (exists $available_protocols{lc $protocol_class}) {
	return @{$available_protocols{lc $protocol_class}}