-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for build and runtime issues #5483
Conversation
Fixes #5482 |
The "Build error with HAVE_EX_DATA_CLEANUP_HOOKS and HAVE_EX_DATA not defined" was related to the usage of a wrong type called EDIT: Refering to the following line which seems odd: https://github.com/wolfSSL/wolfssl/blob/master/wolfssl/ssl.h#L4802 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for me except for the mentioned issue about the X509
type.
doc/dox_comments/header_files/ecc.h
Outdated
FP_ECC (fixed-point ecc), should be defined. Threaded applications should | ||
call this function upon exit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be nice to notice this aswell in the manual. As a user of wolfSSL I would look for the "Thread Safety" section if I would implement a multi-threaded server: https://www.wolfssl.com/documentation/manuals/wolfssl/chapter09.html#thread-safety
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea! I added this blurb to that section:
Some optimizations allocate memory on a per thread basis. If fixed point ECC cache is enabled (FP_ECC), then threads should release the cached buffers using wc_ecc_fp_free() before the thread exits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing this pushed to manual anywhere. Can you please check if you opened the PR to add this?
The compatibility layer headers map Line 81 in 969ad96
I've pushed a fix for the line you mentioned.
|
retest this please. |
Description
Fixes the following:
HAVE_EX_DATA_CLEANUP_HOOKS
andHAVE_EX_DATA
not definedwolfSSL_BIO_clear_retry_flags
to also clear the WOLFSSL_BIO_FLAG_WRITE flagWOLFSSL_CALLBACKS
andWOLFSSL_EARLY_DATA
are definedFixes zd14659
Testing
commit checks
Checklist