mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
examples/dtls-sock: add public key verification
This commit is contained in:
parent
868d8390f4
commit
f2b6d28551
@ -20,6 +20,10 @@ USEPKG += tinydtls
|
|||||||
|
|
||||||
# Pull in sock APIs
|
# Pull in sock APIs
|
||||||
USEMODULE += sock_dtls
|
USEMODULE += sock_dtls
|
||||||
|
# When using asymmetric cryptography, e.g. ecc,
|
||||||
|
# this verifies the public key against a known set.
|
||||||
|
# It does not affect symmetric crypto e.g. PSK.
|
||||||
|
USEMODULE += sock_dtls_verify_public_key
|
||||||
USEMODULE += sock_udp
|
USEMODULE += sock_udp
|
||||||
|
|
||||||
# extra utilities for endpoint printing
|
# extra utilities for endpoint printing
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
#ifdef CONFIG_DTLS_ECC
|
#ifdef CONFIG_DTLS_ECC
|
||||||
static const ecdsa_public_key_t other_pubkeys0[] = {
|
static const ecdsa_public_key_t other_pubkeys0[] = {
|
||||||
{ .x = ecdsa_pub_key0_x, .y = ecdsa_pub_key0_y },
|
{ .x = ecdsa_pub_key0_x, .y = ecdsa_pub_key0_y },
|
||||||
|
{ .x = ecdsa_pub_key1_x, .y = ecdsa_pub_key1_y },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const credman_credential_t credential0 = {
|
static const credman_credential_t credential0 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user