openssl: more verbose error; libgc: make compile on arm macs

This commit is contained in:
Alexander Medvednikov 2024-06-07 11:48:12 +03:00
parent e2848e1348
commit 0d52a7d91e
2 changed files with 2 additions and 2 deletions

View file

@ -7241,7 +7241,7 @@ GC_EXTERN GC_bool GC_print_back_height;
# define GC_auto_incremental (GC_incremental && !GC_manual_vdb) # define GC_auto_incremental (GC_incremental && !GC_manual_vdb)
GC_INNER void GC_dirty_inner(const void *p); /* does not require locking */ 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 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 */ #endif /* !NO_MANUAL_VDB */
#ifdef GC_DISABLE_INCREMENTAL #ifdef GC_DISABLE_INCREMENTAL

View file

@ -242,7 +242,7 @@ fn (mut s SSLConn) complete_connect() ! {
} }
res := C.SSL_get_verify_result(voidptr(s.ssl)) res := C.SSL_get_verify_result(voidptr(s.ssl))
if res != C.X509_V_OK { if res != C.X509_V_OK {
return error('SSL handshake failed') return error('SSL handshake failed (OpenSSL SSL_get_verify_result = ${res})')
} }
} }
} }