aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/pki_priv.h
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-04-24 15:17:45 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-05-13 16:37:51 +0200
commit01e98a6df7583960d17f914d4ede4905e4d388c3 (patch)
tree803b9647dee74195d76e43488c1e42f86eea7e95 /include/libssh/pki_priv.h
parentdbf3f962a4f5fb9ec6e5718bfc2778d685c038f5 (diff)
downloadlibssh-01e98a6df7583960d17f914d4ede4905e4d388c3.tar.gz
libssh-01e98a6df7583960d17f914d4ede4905e4d388c3.tar.xz
libssh-01e98a6df7583960d17f914d4ede4905e4d388c3.zip
pki: Remove duplicate and unused code
Remove duplicate code previously used only in server side to generate signatures. Currently the code used to generate the signature is the same for both client and server. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/pki_priv.h')
-rw-r--r--include/libssh/pki_priv.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h
index 30af8d86..9c79aa88 100644
--- a/include/libssh/pki_priv.h
+++ b/include/libssh/pki_priv.h
@@ -127,12 +127,6 @@ ssh_signature pki_do_sign_hash(const ssh_key privkey,
const unsigned char *hash,
size_t hlen,
enum ssh_digest_e hash_type);
-#define pki_do_sign_sessionid(key, hash, hlen) \
- pki_do_sign_sessionid_hash(key, hash, hlen, SSH_DIGEST_AUTO)
-ssh_signature pki_do_sign_sessionid_hash(const ssh_key key,
- const unsigned char *hash,
- size_t hlen,
- enum ssh_digest_e hash_type);
int pki_ed25519_sign(const ssh_key privkey, ssh_signature sig,
const unsigned char *hash, size_t hlen);
int pki_ed25519_verify(const ssh_key pubkey, ssh_signature sig,