pki: Choose default digest based on the signature key

This commit is contained in:
Tobias Brunner
2015-03-23 17:22:31 +01:00
parent ae0604f583
commit 2872f77829
12 changed files with 69 additions and 20 deletions
+8
View File
@@ -55,4 +55,12 @@ bool calculate_lifetime(char *format, char *nbstr, char *nastr, time_t span,
*/
void set_file_mode(FILE *stream, cred_encoding_type_t enc);
/**
* Select default digest for signatures with the given key
*
* @param private private key
* @return hash algorithm
*/
hash_algorithm_t get_default_digest(private_key_t *private);
#endif /** PKI_H_ @}*/