X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt_common.c;h=ff24e356ab8d837f8d59d67a3c983d5264376db1;hp=c1e40d920ff425ccfdcc536c5fb69cd0422472ca;hb=3685a9093ae12ff9ce02fc58e607eb9b63894443;hpb=fb3fd5b4ddaf52e19303126ea1bacacc5954d808 diff --git a/crypt_common.c b/crypt_common.c index c1e40d92..ff24e356 100644 --- a/crypt_common.c +++ b/crypt_common.c @@ -135,7 +135,7 @@ int check_private_key_file(const char *file) return 1; } -void hash_to_asc(unsigned char *hash, char *asc) +void hash_to_asc(const unsigned char *hash, char *asc) { int i; const char hexchar[] = "0123456789abcdef"; @@ -147,7 +147,7 @@ void hash_to_asc(unsigned char *hash, char *asc) asc[2 * HASH_SIZE] = '\0'; } -int hash_compare(unsigned char *h1, unsigned char *h2) +int hash_compare(const unsigned char *h1, const unsigned char *h2) { int i;