mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 22:09:05 +00:00
[coap] add base class CoapSecureBase and ApplicationCoapSecure (#10945)
This commit refactors COAPS classes, renaming the `CoapSecure` class as `CoapSecureBase`, which is the base class of `Tmf::SecureAgent` and a newly added `ApplicationCoapSecure` class. This change simplifies the code and class hierarchy and ensures that the Application COAP secure related functions are only provided by `ApplicationCoapSecure` and when the corresponding config feature `OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE` is enabled.
This commit is contained in:
@@ -273,7 +273,7 @@ Message::Priority Agent::DscpToPriority(uint8_t aDscp)
|
||||
#if OPENTHREAD_CONFIG_SECURE_TRANSPORT_ENABLE
|
||||
|
||||
SecureAgent::SecureAgent(Instance &aInstance)
|
||||
: Coap::CoapSecure(aInstance, kNoLinkSecurity)
|
||||
: Coap::CoapSecureBase(aInstance, kNoLinkSecurity)
|
||||
{
|
||||
SetResourceHandler(&HandleResource);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user