+ if (!TEST_false(OSSL_LIB_CTX_get_conf_diagnostics(ctx)))
+ goto err;
+
+ OSSL_LIB_CTX_set_conf_diagnostics(ctx, 1);
+
+ if (!TEST_true(OSSL_LIB_CTX_get_conf_diagnostics(ctx)))
+ goto err;
+
+ OSSL_LIB_CTX_set_conf_diagnostics(ctx, 0);
+
+ if (!TEST_false(OSSL_LIB_CTX_get_conf_diagnostics(ctx)))
+ goto err;
+
+ res = 1;
+ err:
+ OSSL_LIB_CTX_free(ctx);
+ return res;