How to compile a simple program with OpenSSL?

前端 未结 1 1852
你的背包
你的背包 2021-01-14 13:23

I am trying to compile a simple ssl program (it was taken from the openssl book source code). The program has the following files: common.h common.c client.c server.c

<
相关标签:
1条回答
  • 2021-01-14 13:47

    In some code versions of openssl book, the thread related functions are stored in reentrant.c, (in fact the declaration of TRHEAD_setup, in the version i've seen is there), so try with:

    gcc -Wall common.c client.c reentrant.c -o client -lcrypto -lssl
    
    0 讨论(0)
提交回复
热议问题