mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
examples: fix sizeof lws_tls_cert_info_results in test_jwt_RS256
This commit is contained in:
parent
d447f8f1db
commit
d18aa1ee0b
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ test_jwt_RS256(struct lws_context *context)
|
|||
}
|
||||
|
||||
if (lws_x509_info(pub, LWS_TLS_CERT_INFO_DER_RAW, der_info,
|
||||
LWS_ARRAY_SIZE(der_buf) - sizeof(der_info) +
|
||||
LWS_ARRAY_SIZE(der_buf) - sizeof(*der_info) +
|
||||
sizeof(der_info->ns.name)) ||
|
||||
der_info->ns.len <= 0) {
|
||||
lwsl_err("%s: failed to parse x509 public key\n", __func__);
|
||||
|
|
Loading…
Add table
Reference in a new issue