Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/client.cc8
-rw-r--r--tool/server.cc8
2 files changed, 12 insertions, 4 deletions
diff --git a/tool/client.cc b/tool/client.cc
index 27084fcb..f8d314ea 100644
--- a/tool/client.cc
+++ b/tool/client.cc
@@ -169,7 +169,9 @@ bool Client(const std::vector<std::string> &args) {
args_map["-max-version"].c_str());
return false;
}
- SSL_CTX_set_max_version(ctx.get(), version);
+ if (!SSL_CTX_set_max_version(ctx.get(), version)) {
+ return false;
+ }
}
if (args_map.count("-min-version") != 0) {
@@ -179,7 +181,9 @@ bool Client(const std::vector<std::string> &args) {
args_map["-min-version"].c_str());
return false;
}
- SSL_CTX_set_min_version(ctx.get(), version);
+ if (!SSL_CTX_set_min_version(ctx.get(), version)) {
+ return false;
+ }
}
if (args_map.count("-select-next-proto") != 0) {
diff --git a/tool/server.cc b/tool/server.cc
index e0aeb134..b4a4eb13 100644
--- a/tool/server.cc
+++ b/tool/server.cc
@@ -133,7 +133,9 @@ bool Server(const std::vector<std::string> &args) {
args_map["-max-version"].c_str());
return false;
}
- SSL_CTX_set_max_version(ctx, version);
+ if (!SSL_CTX_set_max_version(ctx, version)) {
+ return false;
+ }
}
if (args_map.count("-min-version") != 0) {
@@ -143,7 +145,9 @@ bool Server(const std::vector<std::string> &args) {
args_map["-min-version"].c_str());
return false;
}
- SSL_CTX_set_min_version(ctx, version);
+ if (!SSL_CTX_set_min_version(ctx, version)) {
+ return false;
+ }
}
if (args_map.count("-ocsp-response") != 0 &&