Skip to content

Commit

Permalink
wolfssl: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
liudongmiao authored and lws-team committed Mar 7, 2024
1 parent 29c0b56 commit e38e85e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tls/openssl/openssl-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ lws_tls_server_certs_load(struct lws_vhost *vhost, struct lws *wsi,
flen);
}
#else
ret = wolfSSL_CTX_use_PrivateKey_buffer(vhost->tls.ssl_ctx, p, flen,
ret = wolfSSL_CTX_use_PrivateKey_buffer(vhost->tls.ssl_ctx, p, (long) flen,
WOLFSSL_FILETYPE_ASN1);
#endif
lws_free_set_NULL(p);
Expand Down Expand Up @@ -439,7 +439,7 @@ lws_tls_server_certs_load(struct lws_vhost *vhost, struct lws *wsi,
lwsl_notice(" Using ECDH certificate support\n");

/* Get X509 certificate from ssl context */
#if !defined(LWS_WITH_BORINGSSL)
#if !defined(LWS_WITH_BORINGSSL) && !defined(USE_WOLFSSL)
#if !defined(LWS_HAVE_SSL_EXTRA_CHAIN_CERTS)
x = sk_X509_value(vhost->tls.ssl_ctx->extra_certs, 0);
#else
Expand Down Expand Up @@ -482,7 +482,7 @@ lws_tls_server_certs_load(struct lws_vhost *vhost, struct lws *wsi,

EC_KEY_free(EC_key);

#if !defined(OPENSSL_NO_EC) && !defined(LWS_WITH_BORINGSSL)
#if !defined(OPENSSL_NO_EC) && !defined(LWS_WITH_BORINGSSL) && !defined(USE_WOLFSSL)
post_ecdh:
#endif
vhost->tls.skipped_certs = 0;
Expand Down

0 comments on commit e38e85e

Please sign in to comment.