size_t sz = (size_t)sk_OPENSSL_STRING_num(opts);
size_t params_n;
char *opt = "", *stmp, *vtmp = NULL;
+ int found = 1;
if (opts == NULL)
return NULL;
/* Skip over the separator so that vmtp points to the value */
vtmp++;
if (!OSSL_PARAM_allocate_from_text(¶ms[params_n], paramdefs,
- stmp, vtmp, strlen(vtmp), NULL))
+ stmp, vtmp, strlen(vtmp), &found))
goto err;
OPENSSL_free(stmp);
}
return params;
err:
OPENSSL_free(stmp);
- BIO_printf(bio_err, "Parameter error '%s'\n", opt);
+ BIO_printf(bio_err, "Parameter %s '%s'\n", found ? "error" : "unknown",
+ opt);
ERR_print_errors(bio_err);
app_params_free(params);
return NULL;