-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Loading oqsprovider fails via API load under Windows #237
Comments
I only have very little experience with Windows, sorry. Also the error message seems to be pretty generic/not really OQS-related: Are you certain to have set up all other code correctly? For example, can you load the "default" provider via the code above OK? |
Thank you for the quick answer! Yes, I am quite certain that the other code is set up correctly. Loading the "default" provider via the above code works. I will ask the same question in the openssl forum. |
Have you loaded the default provider and then tried to load oqsprovider? The latter depends on the former.... And depending on how you built |
Yes, however, this still does not work. I used the |
Ahh -- that is interesting. Then the "machinations of OQS (initialization)" don't play a role, but it's indeed a question how things have to be set up via the OpenSSL APIs: Please post a link to the discussion in OpenSSL -- I'd be curious to learn what comes up there. Final question from my side: Have you tried running your C code in Unix/Linux to see whether this is a Windows-only issue? I'd be happy to try your code if you don't have such environment. |
You might need to load a pq-activated config in code with |
Definitely worth while trying. This shouldn't change things materially as provider activation happens implicitly when calling |
@marcbrevoort-cyberhive Thanks for the suggestion. I tried it out but it didn't change the result. @baentsch It would be great if you could try this out under Linux for me.
|
This works like a charm under Linux:
|
PS: Any change (wrong path, wrong provider name, etc) lead to an expected "(nil)" output in the second line. |
@baentsch Thanks for trying this out for me under Linux. It's good to know that this might be a Windows error.
Checked for the path and name multiple times. |
I'm afraid then there's no way around asking for help from the (Windows) OpenSSL community. Please post a link here when you have opened an issue (or reference this issue) so we can learn the resolution as and when available. |
Thank you very much @baentsch for the quick fixing of the issue. |
You're welcome. Thanks in turn for raising it and helping getting to the cause of this. Made the software a bit better... I hope -- could you confirm your issue is truly resolved? |
Not yet, but I will try out soon. |
I am trying to load the oqsprovider via code under Windows since loading the provider over the openssl config is not an option for me.
The
oqsprovider.dll
file is located inD:\projects\certificate_scripts
. When running the following commandspath
is set correctly, however,loaded
isNULL
, which indicates that the provider was not successfully loaded.When printing out the error with
it says
error:078C0105:common libcrypto routines::init fail
.Am I missing something here? I am grateful for every kind of input.
The text was updated successfully, but these errors were encountered: