Changeset View
Changeset View
Standalone View
Standalone View
src/qt/paymentserver.cpp
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | void PaymentServer::LoadRootCAs(X509_STORE *_store) { | ||||
// Normal execution, use either -rootcertificates or system certs: | // Normal execution, use either -rootcertificates or system certs: | ||||
certStore.reset(X509_STORE_new()); | certStore.reset(X509_STORE_new()); | ||||
// Note: use "-system-" default here so that users can pass | // Note: use "-system-" default here so that users can pass | ||||
// -rootcertificates="" and get 'I don't like X.509 certificates, don't | // -rootcertificates="" and get 'I don't like X.509 certificates, don't | ||||
// trust anybody' behavior: | // trust anybody' behavior: | ||||
QString certFile = | QString certFile = | ||||
QString::fromStdString(GetArg("-rootcertificates", "-system-")); | QString::fromStdString(gArgs.GetArg("-rootcertificates", "-system-")); | ||||
// Empty store | // Empty store | ||||
if (certFile.isEmpty()) { | if (certFile.isEmpty()) { | ||||
qDebug() << QString("PaymentServer::%1: Payment request authentication " | qDebug() << QString("PaymentServer::%1: Payment request authentication " | ||||
"via X.509 certificates disabled.") | "via X.509 certificates disabled.") | ||||
.arg(__func__); | .arg(__func__); | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 761 Lines • Show Last 20 Lines |