From 89b099fdb37d059a2498cb9e341e841028c0906b Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Thu, 28 Jun 2018 09:55:04 +0800 Subject: [PATCH] update doc --- doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index 6557f59..0aaeb66 100644 --- a/doc.go +++ b/doc.go @@ -7,7 +7,7 @@ TLS api is very similar to crypto/tls on standard library. TLS client example: addr := "127.0.0.1:9443" - c, err := gnutls.Dial("tcp", addr, &gnutls.Config{ServerName: "localhost"}) + c, err := gnutls.Dial("tcp", addr, &gnutls.Config{ServerName: "localhost",InsecureSkipVerify: true}) if err != nil { t.Fatal("gnutls dial ", err) } @@ -92,7 +92,7 @@ AES encrypt/decrypt example: Hash example: - h := gnutls.NewHash(gnutls.GNUTLS_SHA512) + h := gnutls.NewHash(gnutls.GNUTLS_HASH_SHA512) defer h.Close() data := []byte("1234")