fatal: unable to access ‘https://gitee.com/li_xiang_cun/GmSSL.git/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
git config --global http.sslverify false
sudo ./config --prefix=/usr/local/gmssl --openssldir=/usr/local/gmssl no-shared -DGMSSL_NO_TURBO no-afalgeng
./configure OPENSSL_LIBS="-L/usr/local/gmssl/lib /usr/local/gmssl/lib/libssl.a /usr/local/gmssl/lib/libcrypto.a -lpthread -ldl" \
OPENSSL_CFLAGS=-I/usr/local/gmssl/include --includedir=/usr/local/gmssl/include \
--libdir=/usr/local/gmssl/lib --disable-lzo --disable-plugin-auth-pam --prefix=/usr
- 重点1 两个静态库要指定。
- 重点2 -lpthread -ldl 要指定。
- 变量名不能写错喽 OPENSSL_CFLAGS、 OPENSSL_LIBS
//老接口
EVP_CIPHER_CTX ctx;
1
//新接口
EVP_CIPHER_CTX *ctx;
ctx=EVP_CIPHER_CTX_new();
…
EVP_CIPHER_CTX_free(ctx);