mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-26 23:34:12 +08:00
Update GmSSL-Go
This commit is contained in:
@@ -5,5 +5,16 @@ package gmssl
|
||||
/*
|
||||
#cgo darwin CFLAGS: -I/usr/local/include
|
||||
#cgo darwin LDFLAGS: -L/usr/local/lib -lcrypto
|
||||
|
||||
#include <openssl/bio.h>
|
||||
#include <openssl/crypto.h>
|
||||
|
||||
long _BIO_get_mem_data(BIO *b, char **pp) {
|
||||
return BIO_get_mem_data(b, pp);
|
||||
}
|
||||
|
||||
void _OPENSSL_free(void *addr) {
|
||||
OPENSSL_free(addr);
|
||||
}
|
||||
*/
|
||||
import "C"
|
||||
|
||||
Reference in New Issue
Block a user