mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 03:40:39 +03:00
coap_mbedtls.c: Fix build fail for client only mbedtls
This commit is contained in:
1 parent
ca44071b8a
commit
94b297aae7
1 file changed
+2
@@ -710,10 +710,12 @@ setup_pki_credentials(mbedtls_x509_crt *cacert,
|
||||
mbedtls_ssl_conf_ca_chain(&m_env->conf, cacert, NULL);
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_SRV_C)
|
||||
mbedtls_ssl_conf_cert_req_ca_list(&m_env->conf,
|
||||
setup_data->check_common_ca ?
|
||||
MBEDTLS_SSL_CERT_REQ_CA_LIST_ENABLED :
|
||||
MBEDTLS_SSL_CERT_REQ_CA_LIST_DISABLED);
|
||||
#endif
|
||||
mbedtls_ssl_conf_authmode(&m_env->conf, setup_data->verify_peer_cert ?
|
||||
MBEDTLS_SSL_VERIFY_REQUIRED :
|
||||
MBEDTLS_SSL_VERIFY_NONE);
|
||||
|
||||
Reference in new issue
Block a user