1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Don't fatal() in nsock_set_default_engine()

Return negative value instead. Moved the fatal() statement to nmap.cc
This commit is contained in:
henri
2012-10-21 22:56:53 +00:00
parent 5aaf80a0b9
commit e76d41fa04
3 changed files with 13 additions and 10 deletions

View File

@@ -201,8 +201,10 @@ nsock_ssl_ctx nsp_ssl_init_max_speed(nsock_pool ms_pool);
* strup()'ed by the library. No validity check is performed by this function,
* beware nsp_new() will fatal() if an invalid/unavailable engine name was
* supplied before.
* Pass NULL to reset to default (use most efficient engine available). */
void nsock_set_default_engine(char *engine);
* Pass NULL to reset to default (use most efficient engine available).
*
* Function returns 0 on success and -1 on error. */
int nsock_set_default_engine(char *engine);
/* Get a comma-separated list of available engines. */
const char *nsock_list_engines(void);