BIO *biom = NULL;
if (SSL_ech_get1_retry_config(s, &rtval, &rtlen) != 1) {
- BIO_printf(bio, "ECH: Error getting retry-configs\n");
+ BIO_puts(bio, "ECH: Error getting retry-configs\n");
return;
}
/*
|| BIO_write(biom, rtval, (int)rtlen) <= 0
|| (es = OSSL_ECHSTORE_new(NULL, NULL)) == NULL
|| OSSL_ECHSTORE_read_echconfiglist(es, biom) != 1) {
- BIO_printf(bio, "ECH: Error loading retry-configs\n");
+ BIO_puts(bio, "ECH: Error loading retry-configs\n");
goto end;
}
if (OSSL_ECHSTORE_num_entries(es, &cnt) != 1)
&& (es = OSSL_ECHSTORE_new(app_get0_libctx(),
app_get0_propq()))
== NULL) {
- BIO_printf(bio_err, "internal error\n");
+ BIO_puts(bio_err, "ECH: Internal error\n");
return 0;
}
while ((thisfile = OPENSSL_DIR_read(&d, thedir))) {
loaded++;
}
if (SSL_CTX_set1_echstore(lctx, es) != 1) {
- BIO_printf(bio_err, "internal error\n");
+ BIO_puts(bio_err, "ECH: Internal error\n");
return 0;
}
if (bio_s_out != NULL)
if ((in = BIO_new_file(echkeyfile, "r")) == NULL
|| (es = OSSL_ECHSTORE_new(app_get0_libctx(),
app_get0_propq()))
- == 0
+ == NULL
|| OSSL_ECHSTORE_read_pem(es, in, OSSL_ECH_FOR_RETRY) != 1
|| SSL_CTX_set1_echstore(ctx, es) != 1) {
BIO_printf(bio_err, "Failed reading: %s\n", echkeyfile);