Home
last modified time | relevance | path

Searched refs:mDtls (Results 1 – 2 of 2) sorted by relevance

/openthread-2.7.6/src/core/coap/
Dcoap_secure.hpp133 bool IsConnectionActive(void) const { return mDtls.IsConnectionActive(); } in IsConnectionActive()
142 bool IsConnected(void) const { return mDtls.IsConnected(); } in IsConnected()
148 void Disconnect(void) { mDtls.Disconnect(); } in Disconnect()
156 MeshCoP::Dtls &GetDtls(void) { return mDtls; } in GetDtls()
164 uint16_t GetUdpPort(void) const { return mDtls.GetUdpPort(); } in GetUdpPort()
176 Error SetPsk(const uint8_t *aPsk, uint8_t aPskLength) { return mDtls.SetPsk(aPsk, aPskLength); } in SetPsk()
202 mDtls.SetPreSharedKey(aPsk, aPskLength, aPskIdentity, aPskIdLength); in SetPreSharedKey()
223 mDtls.SetCertificate(aX509Cert, aX509Length, aPrivateKey, aPrivateKeyLength); in SetCertificate()
237 mDtls.SetCaCertificateChain(aX509CaCertificateChain, aX509CaCertChainLength); in SetCaCertificateChain()
257 return mDtls.GetPeerCertificateBase64(aPeerCert, aCertLength, aCertBufferSize); in GetPeerCertificateBase64()
[all …]
Dcoap_secure.cpp50 , mDtls(aInstance, aLayerTwoSecurity) in CoapSecure()
64 …SuccessOrExit(error = mDtls.Open(&CoapSecure::HandleDtlsReceive, &CoapSecure::HandleDtlsConnected,… in Start()
65 SuccessOrExit(error = mDtls.Bind(aPort)); in Start()
78 …SuccessOrExit(error = mDtls.Open(&CoapSecure::HandleDtlsReceive, &CoapSecure::HandleDtlsConnected,… in Start()
79 SuccessOrExit(error = mDtls.Bind(aCallback, aContext)); in Start()
87 mDtls.Close(); in Stop()
98 return mDtls.Connect(aSockAddr); in Connect()
111 … error = mDtls.SetPsk(reinterpret_cast<const uint8_t *>(aPskd.GetAsCString()), aPskd.GetLength()); in SetPsk()
127 …error = CoapBase::SendMessage(aMessage, mDtls.GetMessageInfo(), TxParameters::GetDefault(), aHandl… in SendMessage()
151 error = CoapBase::SendMessage(aMessage, mDtls.GetMessageInfo(), aHandler, aContext); in SendMessage()
[all …]