Audit required change to make PeerOptions::parse() call
parseOptions() when 'options=' altered sslOptions instead of
delaying the parse to context creation.
This missed the fact that for GnuTLS the tlsMinVersion was
also updating the sslOptions string rather than the
parsedOptions variable later in the configuration process.
Call parseOptions() to reset the parsedOptions value whenever
sslOptions string is altered.
if (sslOptions.isEmpty())
add.chop(1); // remove the initial ':'
sslOptions.append(add);
+ parseOptions(); // sslOptions changed, reset parsedOptions
#endif
} else {
sslOptions.append(add+1, strlen(add+1));
else
sslOptions.append(add, strlen(add));
+ parseOptions(); // sslOptions changed, reset parsedOptions
#endif
}
sslVersion = 0; // prevent sslOptions being repeatedly appended