mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-02 07:55:46 +03:00
coap_openssl.c: Fix cert chain usage for OpenSSL >= 3.0.0
This commit is contained in:
1 parent
3afff2dba5
commit
ca103b3610
1 file changed
+2
-2
+2
-2
@@ -1669,8 +1669,8 @@ setup_pki_server(SSL_CTX *ctx,
|
||||
key.key.define.public_cert.u_byte[0]) {
|
||||
switch (key.key.define.public_cert_def) {
|
||||
case COAP_PKI_KEY_DEF_PEM: /* define public cert */
|
||||
if (key.key.define.public_cert.u_byte &&
|
||||
key.key.define.public_cert.u_byte[0]) {
|
||||
if (key.key.define.ca.u_byte &&
|
||||
key.key.define.ca.u_byte[0]) {
|
||||
if (!(SSL_use_certificate_file(ssl,
|
||||
key.key.define.public_cert.s_byte,
|
||||
SSL_FILETYPE_PEM))) {
|
||||
|
||||
Reference in new issue
Block a user