diff --git a/cachefkcrt.t.c b/cachefkcrt.t.c index d996cfb..d7803f0 100644 --- a/cachefkcrt.t.c +++ b/cachefkcrt.t.c @@ -114,8 +114,12 @@ START_TEST(cache_fkcrt_04) cachemgr_fini(); fail_unless(c1->references == 1, "refcount != 1"); X509_free(c2); +#ifndef LIBRESSL_VERSION_NUMBER /* deliberate access of free'd X509* */ fail_unless(c1->references == 0, "refcount != 0"); +#else /* LIBRESSL_VERSION_NUMBER */ + fprintf(stderr, "test cache_fkcrt_04 omitted because LibreSSL fails with refcount != 0\n"); +#endif /* LIBRESSL_VERSION_NUMBER */ fail_unless(cachemgr_preinit() != -1, "reinit"); } END_TEST diff --git a/cachetgcrt.t.c b/cachetgcrt.t.c index d115ed0..ed52cf9 100644 --- a/cachetgcrt.t.c +++ b/cachetgcrt.t.c @@ -111,8 +111,12 @@ START_TEST(cache_tgcrt_04) cachemgr_fini(); fail_unless(c1->references == 1, "refcount != 1"); cert_free(c2); +#ifndef LIBRESSL_VERSION_NUMBER /* deliberate access of free'd cert_t* */ fail_unless(c1->references == 0, "refcount != 0"); +#else /* LIBRESSL_VERSION_NUMBER */ + fprintf(stderr, "test cache_tgcrt_04 omitted because LibreSSL fails with refcount != 0\n"); +#endif /* LIBRESSL_VERSION_NUMBER */ fail_unless(cachemgr_preinit() != -1, "reinit"); } END_TEST diff --git a/cert.t.c b/cert.t.c index d21a6bd..017857a 100644 --- a/cert.t.c +++ b/cert.t.c @@ -62,8 +62,12 @@ START_TEST(cert_refcount_inc_01) cert_free(c); fail_unless(c->references == 1, "refcount mismatch"); cert_free(c); +#ifndef LIBRESSL_VERSION_NUMBER /* deliberate access after last free() */ fail_unless(c->references == 0, "refcount mismatch"); +#else /* LIBRESSL_VERSION_NUMBER */ + fprintf(stderr, "test cert_refcount_inc_01 omitted because LibreSSL fails with refcount mismatch\n"); +#endif /* LIBRESSL_VERSION_NUMBER */ } END_TEST