Compile and run C code (PEM_read_bio_PrivateKey) with pq-algoirthms using oqs-provider and OpenSSL3 #67
-
I am using the Openssl3 build and installed by the fullbuild.sh script, i have cloned the repository in /home/buzi2/oqs-provider directory buzi2@buzi2-virtual-machine: ~/oqs-provider/openssl$ ./apps/openssl version -a I have modified the openssl.cnf file as it follows (inside the oqs-provider/openssl/apps/openssl.cnf) [openssl_init] List of providers to load[provider_sect] [default_sect] [oqsprovider_sect] # added My problem is I have modified this inside the oqs-provider/openssl/apps/openssl.cnf file, and the examples on github seem to use the already generated exe in oqs-provider/.local/bin I compile my code this way, even though I guess this is not the right way to link it. When I try to execute it, I get segfault, as it cant't read the pq key and it uses OpenSSL3. The output of ldd mycmp (my executable file) is: My question would be what should I do in addition to what I am already doing, in order to be able to run my code. Should I also pass by -L the path to the shared object oqsprovider.so? The content of mycms.c: include <stdio.h>include <string.h>include <openssl/crypto.h>include <openssl/pem.h>include <openssl/err.h>include <openssl/x509_vfy.h>include <openssl/x509v3.h>include <openssl/cms.h>include <openssl/pem.h>#define ERR_FILE_IO 100 int main(int argc, char **argv) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
At first glance:
Here seems to be an incorrect space ... Have you validated that oqs-provider is loaded at all? |
Beta Was this translation helpful? Give feedback.
-
@alexandra-buzatoiu : Is your problem resolved? OK to mark as "Answered"? |
Beta Was this translation helpful? Give feedback.
@alexandra-buzatoiu : Is your problem resolved? OK to mark as "Answered"?