diff options
author | Jack Lloyd <[email protected]> | 2016-11-21 20:51:14 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-23 08:31:08 -0500 |
commit | 2e9e19a4403a12168527601e96bf29af1024ae0f (patch) | |
tree | 5339297e6ff6d253438e8ea27d1b4fbb243858d8 /src/cli | |
parent | fc638a430c89f01e5eadf3295605cdc3dba78a13 (diff) |
Report OCSP status in tls_client
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/tls_client.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cli/tls_client.cpp b/src/cli/tls_client.cpp index fdbc21ec9..6fbb59e6f 100644 --- a/src/cli/tls_client.cpp +++ b/src/cli/tls_client.cpp @@ -274,6 +274,13 @@ class TLS_Client final : public Command, public Botan::TLS::Callbacks ocsp_timeout); std::cout << "Certificate validation status: " << result.result_string() << "\n"; + if(result.successful_validation()) + { + auto status = result.all_statuses(); + + if(status.size() > 0 && status[0].count(Botan::Certificate_Status_Code::OCSP_RESPONSE_GOOD)) + std::cout << "Valid OCSP response for this server\n"; + } } bool tls_session_established(const Botan::TLS::Session& session) override |