Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-7831
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Sep 13, 2023
1 parent ec0f2ae commit bc8f714
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/framework/SubSystemServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ namespace OpenWifi {

Context->useCertificate(Cert);
Context->addChainCertificate(Root);

Context->addCertificateAuthority(Root);

if (level_ == Poco::Net::Context::VERIFY_STRICT) {
Expand All @@ -76,8 +75,7 @@ namespace OpenWifi {
L.fatal(fmt::format("Wrong Certificate({}) for Key({})", cert_file_, key_file_));
}

SSL_CTX_set_verify(SSLCtx, SSL_VERIFY_PEER, nullptr);

SSL_CTX_set_verify(SSLCtx, SSL_VERIFY_PEER, nullptr);
if (level_ == Poco::Net::Context::VERIFY_STRICT) {
SSL_CTX_set_client_CA_list(SSLCtx, SSL_load_client_CA_file(client_cas_.c_str()));
}
Expand All @@ -87,7 +85,7 @@ namespace OpenWifi {
Context->enableSessionCache();
Context->setSessionCacheSize(0);
Context->setSessionTimeout(60);
Context->enableExtendedCertificateVerification(true);
Context->enableExtendedCertificateVerification( level_!= Poco::Net::Context::VERIFY_NONE );
Context->disableStatelessSessionResumption();
}

Expand Down
11 changes: 10 additions & 1 deletion src/framework/ow_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,16 @@ namespace OpenWifi::RESTAPI::Errors {
1172, "The venue name already exists."
};

static const struct msg DefFirmwareNameExists { 1172, "Firmware name already exists." };
static const struct msg InvalidGlobalReachAccount {
1173, "Invalid Global Reach account information."
};
static const struct msg CannotCreateCSR {
1174, "Cannot create a CSR certificate."
};

static const struct msg DefFirmwareNameExists { 1175, "Firmware name already exists." };

static const struct msg NotAValidECKey { 1176, "Not a valid Signing Key." };

static const struct msg SimulationDoesNotExist {
7000, "Simulation Instance ID does not exist."
Expand Down

0 comments on commit bc8f714

Please sign in to comment.