wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

[Bug]: wolfSSL_CTX_use_certificate_buffer documentation argument nits

Open bagder opened this issue 1 year ago • 2 comments

Contact Details

reply here

Version

current online docs

Description

The example snippet for wolfSSL_CTX_use_certificate_buffer does two "suspicious" things:

  1. it sets sz to zero, when it should be the size of the buffer
  2. the third argument wants a long so sz is using the wrong type

Reproduction steps

No response

Relevant log output

No response

bagder avatar Nov 04 '24 08:11 bagder

This same mistake exists for multiple function calls in the documentation.

bagder avatar Nov 04 '24 09:11 bagder

@bagder I have a PR up here https://github.com/wolfSSL/wolfssl/pull/8161 which should fix this issue, please let me know if you had something else in mind.

ColtonWilley avatar Nov 07 '24 21:11 ColtonWilley