mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-25 08:31:04 +03:00
TLS: Support client checking sent SNI to received server's PKI CN
For coap-client, if either -R or -C options are specified, then allowing self-signed certificates is now disabled.
This commit is contained in:
1 parent
6c01c83272
commit
6c5a0bcb4f
14 files changed
+137
-45
No files matched your search
@@ -275,6 +275,7 @@ t_tls5(void) {
|
||||
}
|
||||
#endif /* COAP_SERVER_SUPPORT */
|
||||
|
||||
#if COAP_CLIENT_SUPPORT
|
||||
static void
|
||||
t_tls6(void) {
|
||||
coap_context_t *ctx;
|
||||
@@ -288,6 +289,7 @@ t_tls6(void) {
|
||||
|
||||
coap_free_context(ctx);
|
||||
}
|
||||
#endif /* COAP_CLIENT_SUPPORT */
|
||||
|
||||
static void
|
||||
t_tls7(void) {
|
||||
@@ -1188,7 +1190,9 @@ t_init_tls_tests(void) {
|
||||
TLS_TEST(suite, t_tls4);
|
||||
TLS_TEST(suite, t_tls5);
|
||||
#endif /* COAP_SERVER_SUPPORT */
|
||||
#if COAP_CLIENT_SUPPORT
|
||||
TLS_TEST(suite, t_tls6);
|
||||
#endif /* COAP_CLIENT_SUPPORT */
|
||||
TLS_TEST(suite, t_tls7);
|
||||
TLS_TEST(suite, t_tls8);
|
||||
#if COAP_SERVER_SUPPORT
|
||||
|
||||
Reference in new issue
Block a user