How to use OpenSSL's SHA256 functions

后端 未结 2 545
半阙折子戏
半阙折子戏 2020-11-27 07:11

I\'m writing a program to get myself acquainted with OpenSSL, libncurses, and UDP networking. I decided to work with OpenSSL\'s SHA256 to become familiar with industry encry

2条回答
  •  伪装坚强ぢ
    2020-11-27 07:38

    This works fine on my system, but you might try:

    extern "C" {
    #include 
    }
    

    which tells g++ that all the stuff in openssl/sha.h is declared as "C" functions.

    BTW, how old is your OpenSSL?

提交回复
热议问题