From 8832cd8b0a91612cbbe2c2ee4bc8fed6ea68b0e9 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 23 Sep 2019 22:22:39 -0400 Subject: [PATCH] [cgo] refs #105 Finalized restore the `cipher.hash` --- lib/cgo/cipher.hash.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cgo/cipher.hash.go b/lib/cgo/cipher.hash.go index f724c2bb0..3041396b3 100644 --- a/lib/cgo/cipher.hash.go +++ b/lib/cgo/cipher.hash.go @@ -43,9 +43,10 @@ func SKY_cipher_SHA256_Set(_g *C.cipher__SHA256, _b []byte) (____error_code uint } //export SKY_cipher_SHA256_Hex -func SKY_cipher_SHA256_Hex(_g *C.cipher__SHA256, _arg1 *string) (____error_code uint32) { +func SKY_cipher_SHA256_Hex(_g *C.cipher__SHA256, _arg1 *C.GoString_) (____error_code uint32) { g := (*cipher.SHA256)(unsafe.Pointer(_g)) - *_arg1 = g.Hex() + __arg1 := g.Hex() + copyString(__arg1,_arg1) return }