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

@@ -34,9 +34,7 @@ static char *get_cipher_names(void) {
return ret;
}
static void _OPENSSL_free(void *addr) {
OPENSSL_free(addr);
}
extern void _OPENSSL_free(void *addr);
*/
import "C"
@@ -87,7 +85,7 @@ type CipherContext struct {
ctx *C.EVP_CIPHER_CTX
}
func NewCipherContext(name string, eng *Engine, key, iv []byte, encrypt bool) (
func NewCipherContext(name string, key, iv []byte, encrypt bool) (
*CipherContext, error) {
cname := C.CString(name)