From f81444bd57095cf8ff8e76b50f662aad0757f574 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 7 Aug 2011 18:22:19 +0200 Subject: pki: Add pki_do_sign(). --- include/libssh/libgcrypt.h | 2 ++ include/libssh/pki.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/libssh/libgcrypt.h b/include/libssh/libgcrypt.h index 3afbcb4..6554555 100644 --- a/include/libssh/libgcrypt.h +++ b/include/libssh/libgcrypt.h @@ -37,7 +37,9 @@ typedef gcry_md_hd_t HMACCTX; #define SHA384_DIGEST_LENGTH 48 #define SHA512_DIGEST_LENGTH 64 +#ifndef EVP_MAX_MD_SIZE #define EVP_MAX_MD_SIZE 36 +#endif typedef gcry_mpi_t bignum; diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 182079f..615b7c0 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -62,5 +62,7 @@ ssh_key pki_private_key_from_base64(ssh_session session, const char *b64_key, const char *passphrase); ssh_key pki_publickey_from_privatekey(ssh_key privkey); +struct signature_struct *pki_do_sign(ssh_key privatekey, + const unsigned char *hash); #endif /* PKI_H_ */ -- cgit