summaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2014-12-01 16:12:05 +0000
committerGeorge Kadianakis <desnacked@riseup.net>2014-12-02 12:15:11 +0000
commit447ece46f5705770df05bd28e27765dde50063de (patch)
treeef7a2277a97de2ca6902a5164c825f11a2e5eddd /src/common/crypto.c
parent11b652acb382b181927d2c31a50e4c8621615083 (diff)
downloadtor-447ece46f5705770df05bd28e27765dde50063de.tar.gz
tor-447ece46f5705770df05bd28e27765dde50063de.zip
Constify crypto_pk_get_digest().
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 7138ba003e..713e588412 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1293,7 +1293,7 @@ crypto_pk_asn1_decode(const char *str, size_t len)
* Return 0 on success, -1 on failure.
*/
int
-crypto_pk_get_digest(crypto_pk_t *pk, char *digest_out)
+crypto_pk_get_digest(const crypto_pk_t *pk, char *digest_out)
{
unsigned char *buf = NULL;
int len;