crypto: Rename check_key_file() -> check_private_key_file().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 10 Jul 2016 19:46:00 +0000 (21:46 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 6 Jan 2017 17:53:46 +0000 (18:53 +0100)
commitb4c9282be012ea84f7154684e9b2a469171e5e2b
treed7a6d6a0f1661e07159018eb4fafacfebb83fcf9
parent70810cd35cf83497f96d1a51572e8e5f16804a59
crypto: Rename check_key_file() -> check_private_key_file().

For public keys the function only called stat(2), which is unnecessary
because only an error from the subsequent open(2) call requires to
fail the operation.

The stat() call is needed for loading private keys though, to make
sure permissions are restrictive enough.

This commit renames the function as indicated in the subject and
drops the second parameter. In crypt.c we now call this function for
private keys only.
crypt.c
crypt_backend.h
crypt_common.c
gcrypt.c