mirror of
https://github.com/eclipse/tinydtls.git
synced 2025-05-09 12:01:02 +08:00
added debug message for non-empty psk_identity_hint
This commit is contained in:
parent
7f19fb932b
commit
d2f321e4bf
@ -110,6 +110,10 @@ get_psk_info(struct dtls_context_t *ctx UNUSED_PARAM,
|
|||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case DTLS_PSK_IDENTITY:
|
case DTLS_PSK_IDENTITY:
|
||||||
|
if (id_len) {
|
||||||
|
dtls_debug("got psk_identity_hint: '%.*s'\n", id_len, id);
|
||||||
|
}
|
||||||
|
|
||||||
if (result_length < psk_id_length) {
|
if (result_length < psk_id_length) {
|
||||||
dtls_warn("cannot set psk_identity -- buffer too small\n");
|
dtls_warn("cannot set psk_identity -- buffer too small\n");
|
||||||
return dtls_alert_fatal_create(DTLS_ALERT_INTERNAL_ERROR);
|
return dtls_alert_fatal_create(DTLS_ALERT_INTERNAL_ERROR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user