Skip to content
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

Correctly import libcrypto functions using dynlib #19881

Merged
merged 1 commit into from
Jun 13, 2022
Merged

Conversation

ardek66
Copy link
Contributor

@ardek66 ardek66 commented Jun 11, 2022

OpenSSL methods exposed in #13131 were not properly imported from libcrypto, resulting in failure to load them dynamically.
I have solved this as mentioned in making timotheecour#64 (comment).
Although I haven't replaced all occurences of the older pragma, this new pragma could lead people to not make mistakes like this in the future.
Also I have removed PEVP_MD because it was redundant.

@Araq Araq merged commit a4fdaa8 into nim-lang:devel Jun 13, 2022
@@ -93,6 +93,9 @@ else:

import dynlib

{.pragma: lcrypto, cdecl, dynlib: DLLUtilName, importc.}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(most of) these should be raises: [], noSideEffect as well - don't remember if SSL has globals or not which would affect side effects

capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
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.

3 participants