mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-11 05:03:34 +01:00
r17897@catbus: nickm | 2008-02-05 13:51:40 -0500
Whitespace cleanups svn:r13378
This commit is contained in:
parent
54029559d7
commit
2502359a5b
@ -283,7 +283,8 @@ authority_cert_get_newest_by_id(const char *id_digest)
|
|||||||
{
|
{
|
||||||
cert_list_t *cl;
|
cert_list_t *cl;
|
||||||
authority_cert_t *best = NULL;
|
authority_cert_t *best = NULL;
|
||||||
if (!trusted_dir_certs || !(cl = digestmap_get(trusted_dir_certs, id_digest)))
|
if (!trusted_dir_certs ||
|
||||||
|
!(cl = digestmap_get(trusted_dir_certs, id_digest)))
|
||||||
return NULL;
|
return NULL;
|
||||||
SMARTLIST_FOREACH(cl->certs, authority_cert_t *, cert,
|
SMARTLIST_FOREACH(cl->certs, authority_cert_t *, cert,
|
||||||
{
|
{
|
||||||
@ -320,7 +321,8 @@ authority_cert_get_by_digests(const char *id_digest,
|
|||||||
const char *sk_digest)
|
const char *sk_digest)
|
||||||
{
|
{
|
||||||
cert_list_t *cl;
|
cert_list_t *cl;
|
||||||
if (!trusted_dir_certs || !(cl = digestmap_get(trusted_dir_certs, id_digest)))
|
if (!trusted_dir_cl ||
|
||||||
|
!(certs = digestmap_get(trusted_dir_certs, id_digest)))
|
||||||
return NULL;
|
return NULL;
|
||||||
SMARTLIST_FOREACH(cl->certs, authority_cert_t *, cert,
|
SMARTLIST_FOREACH(cl->certs, authority_cert_t *, cert,
|
||||||
if (!memcmp(cert->signing_key_digest, sk_digest, DIGEST_LEN))
|
if (!memcmp(cert->signing_key_digest, sk_digest, DIGEST_LEN))
|
||||||
@ -347,7 +349,8 @@ void
|
|||||||
authority_cert_dl_failed(const char *id_digest, int status)
|
authority_cert_dl_failed(const char *id_digest, int status)
|
||||||
{
|
{
|
||||||
cert_list_t *cl;
|
cert_list_t *cl;
|
||||||
if (!trusted_dir_certs || !(cl = digestmap_get(trusted_dir_certs, id_digest)))
|
if (!trusted_dir_certs ||
|
||||||
|
!(cl = digestmap_get(trusted_dir_certs, id_digest)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
download_status_failed(&cl->dl_status, status);
|
download_status_failed(&cl->dl_status, status);
|
||||||
|
Loading…
Reference in New Issue
Block a user