X-Git-Url: https://bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=tools%2Fbrssl.h;h=a23ba00f710342a96ad609067bc3878406c5abb6;hp=22fd712239405b46fb8ae1c67ed89f933bafba42;hb=08eb07825be067729dff343de2d9a0c13252b415;hpb=e37c90ac68c4a42417e0302343de87c9e340803e diff --git a/tools/brssl.h b/tools/brssl.h index 22fd712..a23ba00 100644 --- a/tools/brssl.h +++ b/tools/brssl.h @@ -298,11 +298,22 @@ int uses_ecdhe(unsigned suite); */ void list_names(void); +/* + * Print out all known elliptic curve names. + */ +void list_curves(void); + /* * Get the symbolic name for an elliptic curve (by ID). */ const char *ec_curve_name(int curve); +/* + * Get a curve by symbolic name. If the name is not recognized, -1 is + * returned. + */ +int get_curve_by_name(const char *str); + /* * Get the symbolic name for a hash function name (by ID). */