From 1a3df50425a58ea8ba419f19fde4238e5edb364c Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 11 Dec 2024 17:27:06 -0800 Subject: [PATCH] pvxinfo -v show server credentials --- src/serverconn.cpp | 4 +++- tools/info.cpp | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/serverconn.cpp b/src/serverconn.cpp index d786bf832..c68c85d5b 100644 --- a/src/serverconn.cpp +++ b/src/serverconn.cpp @@ -36,9 +36,11 @@ std::set PeerCredentials::roles() const std::ostream& operator<<(std::ostream& strm, const PeerCredentials& cred) { + if(cred.isTLS) + strm<<"TLS "; strm<> ops; + std::list> conns; std::atomic remaining{argc-optind}; epicsEvent done; for(auto n : range(optind, argc)) { + if(verbose) + conns.push_back(ctxt.connect(argv[n]).onConnect([](const client::Connected& cb) { + std::cout<<"# "<<(*cb.cred)<<"\n"; + }).exec()); ops.push_back(ctxt.info(argv[n]) .result([&argv, n, &remaining, &done](client::Result&& result) {