From 0d52a7d91eba080e30f24dee037e3dff6503c7cd Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 7 Jun 2024 11:48:12 +0300 Subject: [PATCH] openssl: more verbose error; libgc: make compile on arm macs --- thirdparty/libgc/gc.c | 2 +- vlib/net/openssl/ssl_connection.c.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thirdparty/libgc/gc.c b/thirdparty/libgc/gc.c index 2c946b1f40..d70a0576f0 100644 --- a/thirdparty/libgc/gc.c +++ b/thirdparty/libgc/gc.c @@ -7241,7 +7241,7 @@ GC_EXTERN GC_bool GC_print_back_height; # define GC_auto_incremental (GC_incremental && !GC_manual_vdb) GC_INNER void GC_dirty_inner(const void *p); /* does not require locking */ # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) -# define REACHABLE_AFTER_DIRTY(p) GC_reachable_here(p) +# define REACHABLE_AFTER_DIRTY(p) GC_noop1(p) //GC_reachable_here(p) #endif /* !NO_MANUAL_VDB */ #ifdef GC_DISABLE_INCREMENTAL diff --git a/vlib/net/openssl/ssl_connection.c.v b/vlib/net/openssl/ssl_connection.c.v index 9b40814f66..e6fff45f67 100644 --- a/vlib/net/openssl/ssl_connection.c.v +++ b/vlib/net/openssl/ssl_connection.c.v @@ -242,7 +242,7 @@ fn (mut s SSLConn) complete_connect() ! { } res := C.SSL_get_verify_result(voidptr(s.ssl)) if res != C.X509_V_OK { - return error('SSL handshake failed') + return error('SSL handshake failed (OpenSSL SSL_get_verify_result = ${res})') } } }