X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=tools%2Fbrssl.h;h=cd67399d26a54c8b4a1ec442b0d03262ec03f1b3;hp=f2957e640f4db949768c0ccb68110fc1f717aa8b;hb=05520e8eae3d8c6039e8bcde58741cf4ffb18f1d;hpb=5f045c759957fdff8c85716e6af99e10901fdac0 diff --git a/tools/brssl.h b/tools/brssl.h index f2957e6..cd67399 100644 --- a/tools/brssl.h +++ b/tools/brssl.h @@ -485,7 +485,8 @@ const char *get_algo_name(const void *algo, int long_name); /* * Run a SSL engine, with a socket connected to the peer, and using - * stdin/stdout to exchange application data. + * stdin/stdout to exchange application data. The socket must be a + * non-blocking descriptor. * * To help with Win32 compatibility, the socket descriptor is provided * as an "unsigned long" value. @@ -538,4 +539,17 @@ int do_ta(int argc, char *argv[]); */ int do_chain(int argc, char *argv[]); +/* + * Do the "twrch" command. Returned value is 0 on success, -1 on failure + * (processing or arguments), or a non-zero exit code. Command-line + * arguments start _after_ the command name. + */ +int do_twrch(int argc, char *argv[]); + +/* + * Do the "impl" command. Returned value is 0 on success, -1 on failure. + * Command-line arguments start _after_ the command name. + */ +int do_impl(int argc, char *argv[]); + #endif