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

Improve signing scheme mapping from std::string to OpenSSL function pointers #199

Open
SylvainCorlay opened this issue Dec 19, 2019 · 0 comments

Comments

@SylvainCorlay
Copy link
Member

xeus dynamically maps the signing scheme specified in the kernel messages to the corresponding function pointer in OpenSSL.

This is done in function asevp, at https://github.com/QuantStack/xeus/blob/0.23.3/src/xauthentication.cpp#L106-L124.

This function internally makes use of a std::map with std::string keys and const EVP_MD*(*)() (function pointers).

Unfortunately, depending of the build options of OpenSSL, some of these functions may or may not be defined, so we had to comment out some of the supported schemes.

We should investigate if this information can be discovered at runtime.

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

No branches or pull requests

1 participant