diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-02-10 15:35:46 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-02-10 15:35:46 -0500 |
commit | a8d69895897056fcc313914e9d611d3c9008e17c (patch) | |
tree | f670ff0aa4e1a75de248dff8b5de2ff22d5ced5c /src/common | |
parent | 9746aed2baffeb3788552f8cdedc5611ab2f91b7 (diff) | |
download | tor-a8d69895897056fcc313914e9d611d3c9008e17c.tar.gz tor-a8d69895897056fcc313914e9d611d3c9008e17c.zip |
Whitespace fixes
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/crypto.h | 4 | ||||
-rw-r--r-- | src/common/tortls.h | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index f1e4981193..9535c4ec0f 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -102,7 +102,6 @@ typedef enum { #define N_DIGEST_ALGORITHMS (DIGEST_SHA3_512+1) #define N_COMMON_DIGEST_ALGORITHMS (DIGEST_SHA256+1) - /** A set of all the digests we commonly compute, taken on a single * string. Any digests that are shorter than 512 bits are right-padded * with 0 bits. @@ -193,7 +192,8 @@ int crypto_pk_private_hybrid_decrypt(crypto_pk_t *env, char *to, int crypto_pk_asn1_encode(crypto_pk_t *pk, char *dest, size_t dest_len); crypto_pk_t *crypto_pk_asn1_decode(const char *str, size_t len); int crypto_pk_get_digest(const crypto_pk_t *pk, char *digest_out); -int crypto_pk_get_common_digests(crypto_pk_t *pk, common_digests_t *digests_out); +int crypto_pk_get_common_digests(crypto_pk_t *pk, + common_digests_t *digests_out); int crypto_pk_get_fingerprint(crypto_pk_t *pk, char *fp_out,int add_space); int crypto_pk_get_hashed_fingerprint(crypto_pk_t *pk, char *fp_out); diff --git a/src/common/tortls.h b/src/common/tortls.h index 97ca8fda7d..d235ca5756 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -237,8 +237,10 @@ tor_x509_cert_t *tor_x509_cert_decode(const uint8_t *certificate, size_t certificate_len); void tor_x509_cert_get_der(const tor_x509_cert_t *cert, const uint8_t **encoded_out, size_t *size_out); -const common_digests_t *tor_x509_cert_get_id_digests(const tor_x509_cert_t *cert); -const common_digests_t *tor_x509_cert_get_cert_digests(const tor_x509_cert_t *cert); +const common_digests_t *tor_x509_cert_get_id_digests( + const tor_x509_cert_t *cert); +const common_digests_t *tor_x509_cert_get_cert_digests( + const tor_x509_cert_t *cert); int tor_tls_get_my_certs(int server, const tor_x509_cert_t **link_cert_out, const tor_x509_cert_t **id_cert_out); |