Skip to content

Commit 7938d60

Browse files
committed
SetupSslContext(): don't require any args
1 parent 5f6aeb0 commit 7938d60

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/base/tlsutility.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ void SetCipherListToSSLContext(const Shared<TlsContext>::Ptr& context, const Str
5151
void SetTlsProtocolminToSSLContext(const Shared<TlsContext>::Ptr& context, const String& tlsProtocolmin);
5252
int ResolveTlsProtocolVersion(const std::string& version);
5353

54-
Shared<TlsContext>::Ptr SetupSslContext(const String& certPath, const String& keyPath,
55-
const String& caPath, const String& crlPath, const String& cipherList, const String& protocolmin, DebugInfo di);
54+
Shared<TlsContext>::Ptr SetupSslContext(const String& certPath = String(), const String& keyPath = String(), const String& caPath = String(),
55+
const String& crlPath = String(), const String& cipherList = String(), const String& protocolmin = String(), DebugInfo di = {});
5656

5757
String GetCertificateCN(const std::shared_ptr<X509>& certificate);
5858
std::shared_ptr<X509> GetX509Certificate(const String& pemfile);

lib/methods/ifwapichecktask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ void IfwApiCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckRes
501501
double start = Utility::GetTime();
502502

503503
try {
504-
ctx = SetupSslContext(cert, key, ca, crl, DEFAULT_TLS_CIPHERS, DEFAULT_TLS_PROTOCOLMIN, DebugInfo());
504+
ctx = SetupSslContext(cert, key, ca, crl, DEFAULT_TLS_CIPHERS, DEFAULT_TLS_PROTOCOLMIN);
505505
} catch (const std::exception& ex) {
506506
ReportIfwCheckResult(checkable, cmdLine, cr, ex.what(), start, Utility::GetTime());
507507
return;

0 commit comments

Comments
 (0)