<blockquote>
<p>This still need to be confirmed in the dtls-echo example, but not related to this PR.</p>
</blockquote>
<p>Using <code>TINYDTLS_LOG=6</code> I can see the DTLS Alert record on the dtls-echo client (PSK). This is only relevant because I'm using it for testing this PR too.  Additionally, it's seems that you modified the ECC certificate for dtls-sock in comparison with dtls-echo <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
<hr>
<p>I tested with success a client with PSK talking with ECC <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> .</p>
<p>I suppose that you still need time to check the ECC case.  Still, if you didn't modified the certificate for this example, then check that part.  A  dtls-sock client with ECC fails  trying  to process a dtls-echo server with ECC (<code>WARN error in check_server_certificate err: -558</code>).  To my surprise, on this case TinyDTLS finish receiving the DTLS records, wasting time and resources, instead of cancelling the handshake.</p>
<p>Oddly, a dtls-sock server with ECC doesn't have any problem with the dtls-echo client.</p>
<hr>
<p>By the way, I'm not going to have enough time this week to test further this PR.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11943?email_source=notifications&email_token=ABE7WYDT6LVIOOS5JPVKUT3QMJGU5A5CNFSM4IIE42T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76ZLMQ#issuecomment-536712626">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYELRJXAHTTTJGU2ENDQMJGU5ANCNFSM4IIE42TQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYEXMY6EZ3CXXAPJAS3QMJGU5A5CNFSM4IIE42T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76ZLMQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11943?email_source=notifications\u0026email_token=ABE7WYDT6LVIOOS5JPVKUT3QMJGU5A5CNFSM4IIE42T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76ZLMQ#issuecomment-536712626",
"url": "https://github.com/RIOT-OS/RIOT/pull/11943?email_source=notifications\u0026email_token=ABE7WYDT6LVIOOS5JPVKUT3QMJGU5A5CNFSM4IIE42T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76ZLMQ#issuecomment-536712626",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>