Exit if can't set curve ID
This commit is contained in:
parent
1e59d2c470
commit
a6601c1e97
@ -139,10 +139,13 @@ conn_init(Conn *conn)
|
|||||||
|
|
||||||
if (param.ssl_groups) {
|
if (param.ssl_groups) {
|
||||||
int ssl_err = SSL_set1_curves_list(conn->ssl, param.ssl_groups);
|
int ssl_err = SSL_set1_curves_list(conn->ssl, param.ssl_groups);
|
||||||
|
if (!ssl_err) {
|
||||||
|
fprintf(stderr, "Requested group unsupported. Exiting...\n");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
if (DBG > 2)
|
if (DBG > 2)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"core_ssl_connect: set_grtou returned %d\n",
|
"core_ssl_connect: set_group returned %d\n",
|
||||||
ssl_err);
|
ssl_err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user