Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
clang-format bustage. r=me
  • Loading branch information
ekr committed Nov 15, 2016
1 parent 0d5c7b0 commit 4b51402
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion gtests/common/scoped_ptrs.h
Expand Up @@ -16,7 +16,9 @@ namespace nss_test {

struct ScopedDelete {
void operator()(CERTCertificate* cert) { CERT_DestroyCertificate(cert); }
void operator()(CERTCertificateList* list) { CERT_DestroyCertificateList(list); }
void operator()(CERTCertificateList* list) {
CERT_DestroyCertificateList(list);
}
void operator()(CERTSubjectPublicKeyInfo* spki) {
SECKEY_DestroySubjectPublicKeyInfo(spki);
}
Expand Down
6 changes: 2 additions & 4 deletions gtests/ssl_gtest/tls_agent.cc
Expand Up @@ -204,12 +204,10 @@ SECStatus TlsAgent::GetClientAuthDataHook(void* self, PRFileDesc* fd,

bool TlsAgent::GetPeerChainLength(size_t* count) {
CERTCertList* chain = SSL_PeerCertificateChain(ssl_fd_);
if (!chain)
return false;
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;
std::cerr << node->cert->subjectName << std::endl;
Expand Down

0 comments on commit 4b51402

Please sign in to comment.