Update GmSSL-Go

This commit is contained in:
Zhi Guan
2018-08-06 20:51:29 +08:00
parent 962f7fbe3e
commit ebd186d01d
12 changed files with 390 additions and 238 deletions

View File

@@ -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"