mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-26 04:31:21 +03:00
OpenSSL: Fix trust store for Ubuntu 26.04 (OpenSSL 3.5.0e-dev)
This commit is contained in:
1 parent
75a532c1f7
commit
b2ba5ff454
1 file changed
+2
-2
+2
-2
@@ -3382,14 +3382,14 @@ coap_dtls_context_load_pki_trust_store(coap_context_t *ctx) {
|
|||||||
coap_openssl_context_t *context =
|
coap_openssl_context_t *context =
|
||||||
((coap_openssl_context_t *)ctx->dtls_context);
|
((coap_openssl_context_t *)ctx->dtls_context);
|
||||||
if (context->dtls.ctx) {
|
if (context->dtls.ctx) {
|
||||||
if (!SSL_CTX_set_default_verify_store(context->dtls.ctx)) {
|
if (!SSL_CTX_set_default_verify_paths(context->dtls.ctx)) {
|
||||||
coap_log_warn("Unable to load trusted root CAs\n");
|
coap_log_warn("Unable to load trusted root CAs\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if !COAP_DISABLE_TCP
|
#if !COAP_DISABLE_TCP
|
||||||
if (context->tls.ctx) {
|
if (context->tls.ctx) {
|
||||||
if (!SSL_CTX_set_default_verify_store(context->tls.ctx)) {
|
if (!SSL_CTX_set_default_verify_paths(context->tls.ctx)) {
|
||||||
coap_log_warn("Unable to load trusted root CAs\n");
|
coap_log_warn("Unable to load trusted root CAs\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user