mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-24 22:33:45 +08:00
Update GmSSL-Go
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user