diff --git a/gnutls.c b/gnutls.c index eebb724..899a4f1 100644 --- a/gnutls.c +++ b/gnutls.c @@ -132,7 +132,7 @@ int handshake(struct session *sess) printf("cert verify output: %s\n", out.data); gnutls_free(out.data); } - fprintf(stderr, "*** Handshake failed: %s\n", gnutls_strerror(ret)); + //fprintf(stderr, "*** Handshake failed: %s\n", gnutls_strerror(ret)); } /*else{ desc = gnutls_session_get_desc(sess->session); printf("- Session info: %s\n", desc); diff --git a/tls.go b/tls.go index 5cfc3cb..be091d1 100644 --- a/tls.go +++ b/tls.go @@ -383,7 +383,7 @@ func onDataReadCallback(d unsafe.Pointer, cbuf *C.char, bufLen C.int) C.int { buf := make([]byte, int(bufLen)) n, err := conn.c.Read(buf) if err != nil { - log.Println(err) + //log.Println(err) // 0 indicates connection termination return 0 } @@ -403,7 +403,7 @@ func onDataWriteCallback(d unsafe.Pointer, cbuf *C.char, bufLen C.int) C.int { gobuf := C.GoBytes(unsafe.Pointer(cbuf), bufLen) n, err := conn.c.Write(gobuf) if err != nil { - log.Println(err) + //log.Println(err) return -1 } return C.int(n)