Topic: how to add functions in ssl.c to libwolfssl.so
Hi, dear friend,
I'm using wolfssl 4.5.0 to replace openssl.
I'm using gcc to compile a c file.
First ,execte ./configure --enable-opensslall --enable-opensslextra
Then, make
and, sudo make install
and, compile my c file.but it says :
wrp.c:(.text+0x10e): undefined reference to `wolfSSL_add_all_algorithms'
wrp.c:(.text+0x113): undefined reference to `wolfSSL_RAND_status'
wrp.c:(.text+0x14d): undefined reference to `wolfSSL_BIO_new_mem_buf'
wrp.c:(.text+0x178): undefined reference to `wolfSSL_PEM_read_bio_X509'
wrp.c:(.text+0x189): undefined reference to `wolfSSL_BIO_free'
wrp.c:(.text+0x1a5): undefined reference to `wolfSSL_BIO_new_mem_buf'
wrp.c:(.text+0x1d0): undefined reference to `wolfSSL_PEM_read_bio_X509'
wrp.c:(.text+0x1e2): undefined reference to `wolfSSL_BIO_free'
wrp.c:(.text+0x1fe): undefined reference to `wolfSSL_BIO_new_mem_buf'
wrp.c:(.text+0x229): undefined reference to `wolfSSL_PEM_read_bio_PrivateKey'
wrp.c:(.text+0x23b): undefined reference to `wolfSSL_BIO_free'
wrp.c:(.text+0x2a2): undefined reference to `wolfSSL_CTX_use_certificate'
wrp.c:(.text+0x2e6): undefined reference to `wolfSSL_CTX_use_PrivateKey'
wrp.c:(.text+0x385): undefined reference to `wolfSSL_check_private_key'
wrp.c:(.text+0x3af): undefined reference to `wolfSSL_BIO_s_mem'
wrp.c:(.text+0x3b7): undefined reference to `wolfSSL_BIO_new'
wrp.c:(.text+0x3f0): undefined reference to `wolfSSL_BIO_s_mem'
wrp.c:(.text+0x3f8): undefined reference to `wolfSSL_BIO_new'
wrp.c:(.text+0x451): undefined reference to `wolfSSL_set_bio'
wrp.c:(.text+0x464): undefined reference to `wolfSSL_set_connect_state'
wrp.c:(.text+0x470): undefined reference to `wolfSSL_X509_STORE_new'
wrp.c:(.text+0x4ba): undefined reference to `wolfSSL_X509_STORE_add_cert'
wrp.c:(.text+0x4ed): undefined reference to `wolfSSL_X509_STORE_set_flags'
It seems all the above functions are in src/ssl.c.
Pls tell me how to add the functions to the libwolfssl.so
Thks a lot.