summaryrefslogtreecommitdiff
path: root/gtests/ssl_gtest/tls_agent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtests/ssl_gtest/tls_agent.cc')
-rw-r--r--gtests/ssl_gtest/tls_agent.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/gtests/ssl_gtest/tls_agent.cc b/gtests/ssl_gtest/tls_agent.cc
index edcfd8daf..99d4ba070 100644
--- a/gtests/ssl_gtest/tls_agent.cc
+++ b/gtests/ssl_gtest/tls_agent.cc
@@ -203,15 +203,13 @@ SECStatus TlsAgent::GetClientAuthDataHook(void* self, PRFileDesc* fd,
}
bool TlsAgent::GetPeerChainLength(size_t* count) {
- CERTCertList *chain = SSL_PeerCertificateChain(ssl_fd_);
- if (!chain)
- return false;
+ CERTCertList* chain = SSL_PeerCertificateChain(ssl_fd_);
+ if (!chain) return false;
*count = 0;
- for (PRCList *cursor = PR_NEXT_LINK(&chain->list);
- cursor != &chain->list;
+ for (PRCList* cursor = PR_NEXT_LINK(&chain->list); cursor != &chain->list;
cursor = PR_NEXT_LINK(cursor)) {
- CERTCertListNode *node = (CERTCertListNode *)cursor;
+ CERTCertListNode* node = (CERTCertListNode*)cursor;
std::cerr << node->cert->subjectName << std::endl;
++(*count);
}