Commit 4b514026 authored by EKR's avatar EKR

clang-format bustage. r=me

parent 0d5c7b0e
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment