1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/pkg_tinydtls_sock_async: add missing ID to server PSK

This commit is contained in:
Leandro Lanzieri 2021-03-17 13:13:16 +01:00
parent 6428505017
commit 835589a301
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593

View File

@ -59,6 +59,7 @@ static const credman_credential_t credential = {
};
#else /* #ifdef CONFIG_DTLS_PSK */
static const uint8_t psk_key_0[] = PSK_DEFAULT_KEY;
static const uint8_t psk_id_0[] = PSK_DEFAULT_IDENTITY;
static const credman_credential_t credential = {
.type = CREDMAN_TYPE_PSK,
@ -66,6 +67,7 @@ static const credman_credential_t credential = {
.params = {
.psk = {
.key = { .s = psk_key_0, .len = sizeof(psk_key_0) - 1, },
.id = { .s = psk_id_0, .len = sizeof(psk_id_0) - 1, },
},
},
};