[coap] remove duplicate method for setting ConnectedCallback (#9691)

This commit removes `CoapSecure::SetClientConnectedCallback()` which
is the same as `SetConnectedCallback()`.
This commit is contained in:
Abtin Keshavarzian
2023-12-06 14:46:16 -08:00
committed by GitHub
parent 6e7135e4e1
commit 76d0c6e6c5
2 changed files with 1 additions and 13 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ void otCoapSecureSetClientConnectedCallback(otInstance *aIns
otHandleCoapSecureClientConnect aHandler,
void *aContext)
{
AsCoreType(aInstance).GetApplicationCoapSecure().SetClientConnectedCallback(aHandler, aContext);
AsCoreType(aInstance).GetApplicationCoapSecure().SetConnectedCallback(aHandler, aContext);
}
void otCoapSecureSetDefaultHandler(otInstance *aInstance, otCoapRequestHandler aHandler, void *aContext)
-12
View File
@@ -258,18 +258,6 @@ public:
}
#endif // defined(MBEDTLS_BASE64_C) && defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE)
/**
* Sets the connected callback to indicate, when a Client connect to the CoAP Secure server.
*
* @param[in] aCallback A pointer to a function that will be called once DTLS connection is established.
* @param[in] aContext A pointer to arbitrary context information.
*
*/
void SetClientConnectedCallback(ConnectedCallback aCallback, void *aContext)
{
mConnectedCallback.Set(aCallback, aContext);
}
/**
* Sets the authentication mode for the CoAP secure connection. It disables or enables the verification
* of peer certificate.