OCSP example using Certificate Manager#224
Merged
julek-wolfssl merged 4 commits intowolfSSL:masterfrom Jun 1, 2022
Merged
Conversation
5155563 to
7cf05de
Compare
SparkiDev
reviewed
May 25, 2022
julek-wolfssl
requested changes
May 26, 2022
Member
julek-wolfssl
left a comment
There was a problem hiding this comment.
I'm getting this error when compiling:
gcc -o ocsp_nonblock ocsp_nonblock.c -Wall -I/usr/local/include -Os -L/usr/local/lib -lwolfssl
ocsp_nonblock.c: In function ‘main’:
ocsp_nonblock.c:279:19: warning: ‘derSz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
279 | ret = wolfSSL_CertManagerVerifyBuffer(pCm,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
280 | der, derSz, WOLFSSL_FILETYPE_ASN1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Member
|
I think that having the callback be blocking is not a great example. I modified the example so that the IO callback returns the |
julek-wolfssl
requested changes
May 26, 2022
| else { | ||
| do { | ||
| ret = wolfIO_HttpProcessResponseOcsp(sfd, ocspRespBuf, | ||
| httpBuf, HTTP_SCRATCH_BUFFER_SIZE, ctx); |
Member
There was a problem hiding this comment.
The ctx is not the heap hint. It is in EmbedOcspLookup but not for user callbacks.
Member
|
Also do you think the example should use a |
julek-wolfssl
requested changes
Jun 1, 2022
julek-wolfssl
approved these changes
Jun 1, 2022
Member
julek-wolfssl
left a comment
There was a problem hiding this comment.
Thanks for the changes. They look good.
yota22721
pushed a commit
to yota22721/wolfssl-examples
that referenced
this pull request
Jan 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also shows optional non-blocking OCSP support.
Uses PR: wolfSSL/wolfssl#3204
ZD 10417