Skip to content

General improvements #7

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

Merged
merged 2 commits into from
Mar 11, 2024
Merged

General improvements #7

merged 2 commits into from
Mar 11, 2024

Conversation

gowthamsk-arm
Copy link
Collaborator

@gowthamsk-arm gowthamsk-arm commented Mar 1, 2024

This PR provides following changes:

  • Null check in the init function at the FFI boundary
  • Usage of pkg-config to generate the required openssl bindings

Signed-off-by: Gowtham Suresh Kumar gowtham.sureshkumar@arm.com

@gowthamsk-arm gowthamsk-arm changed the title openssl-provider: Add null checks in init function General improvements Mar 2, 2024
out and provctx are double pointers. Check if the first level of
dereferencing is valid by testing for NULL pointers before
assigning the values.

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
The openssl.h header file would be hard to maintain while adding new features
requiring new bindings. A more standard way of generating the bindings using
pkg-config eases the process.

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
@tgonzalezorlandoarm tgonzalezorlandoarm merged commit e0bbdf4 into main Mar 11, 2024
@gowthamsk-arm gowthamsk-arm deleted the null_check branch March 11, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants