diff options
author | lloyd <[email protected]> | 2012-04-20 21:53:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-04-20 21:53:20 +0000 |
commit | bf3f967353053ce408f3bbee58d183487e569f7e (patch) | |
tree | ad11eb9977064e0e8dde8b733e706ddf64a68dea /doc/examples/tls_server.cpp | |
parent | 0adad7dd2c6def13fbb5677d7bcc859ba4cab0b1 (diff) |
Various hacks for testing client auth, SRP, etc
Diffstat (limited to 'doc/examples/tls_server.cpp')
-rw-r--r-- | doc/examples/tls_server.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/examples/tls_server.cpp b/doc/examples/tls_server.cpp index 057584677..bdc9c0b8a 100644 --- a/doc/examples/tls_server.cpp +++ b/doc/examples/tls_server.cpp @@ -57,6 +57,12 @@ class Blocking_TLS_Server if(server.next_protocol() != "") std::cout << "Next protocol: " << server.next_protocol() << "\n"; + /* + std::vector<X509_Certificate> peer_certs = session.peer_certs(); + if(peer_certs.size()) + std::cout << peer_certs[0].to_string(); + */ + return true; } @@ -208,7 +214,9 @@ int main(int argc, char* argv[]) } if(line == "reneg\n") - tls.underlying().renegotiate(); + tls.underlying().renegotiate(false); + else if(line == "RENEG\n") + tls.underlying().renegotiate(true); line.clear(); } |