Skip to content

Commit

Permalink
[epskc] enable by default for Thread 1.4 (#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
mia1yang authored Aug 20, 2024
1 parent 45309ea commit 791828c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/border_agent/border_agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include <openthread/border_routing.h>
#include <openthread/random_crypto.h>
#include <openthread/random_noncrypto.h>
#include <openthread/thread.h>
#include <openthread/thread_ftd.h>
#include <openthread/verhoeff_checksum.h>
#include <openthread/platform/settings.h>
Expand Down Expand Up @@ -160,12 +161,13 @@ BorderAgent::BorderAgent(otbr::Ncp::RcpHost &aHost, Mdns::Publisher &aPublisher)
: mHost(aHost)
, mPublisher(aPublisher)
, mIsEnabled(false)
, mIsEphemeralKeyEnabled(false)
, mIsEphemeralKeyEnabled(otThreadGetVersion() >= OT_THREAD_VERSION_1_4)
, mVendorName(OTBR_VENDOR_NAME)
, mProductName(OTBR_PRODUCT_NAME)
, mBaseServiceInstanceName(OTBR_MESHCOP_SERVICE_INSTANCE_NAME)
{
mHost.AddThreadStateChangedCallback([this](otChangedFlags aFlags) { HandleThreadStateChanged(aFlags); });
otbrLogInfo("Ephemeral Key is: %s during initialization", (mIsEphemeralKeyEnabled ? "enabled" : "disabled"));
}

otbrError BorderAgent::CreateEphemeralKey(std::string &aEphemeralKey)
Expand Down

0 comments on commit 791828c

Please sign in to comment.