static int list_builtin_curves(BIO *out)
{
- int ret = 0;
EC_builtin_curve *curves = NULL;
size_t n, crv_len = EC_get_builtin_curves(NULL, 0);
curves = app_malloc((int)sizeof(*curves) * crv_len, "list curves");
- if (!EC_get_builtin_curves(curves, crv_len))
- goto end;
+ EC_get_builtin_curves(curves, crv_len);
for (n = 0; n < crv_len; n++) {
const char *comment = curves[n].comment;
BIO_printf(out, " %-10s: ", sname);
BIO_printf(out, "%s\n", comment);
}
- ret = 1;
-end:
OPENSSL_free(curves);
- return ret;
+ return 1;
}
int ecparam_main(int argc, char **argv)