aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2020-12-11 12:21:48 +0100
committerAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2021-01-12 12:54:18 +0100
commitc3ae1336fbefda2e71c68149d831b576ab001ac9 (patch)
treed7f0692b46ff262387bca566a1764a98e7b36249 /include/libssh
parent95a4651d86c5a937d0fa17030a0db0308dc4a690 (diff)
downloadlibssh-c3ae1336fbefda2e71c68149d831b576ab001ac9.tar.gz
libssh-c3ae1336fbefda2e71c68149d831b576ab001ac9.tar.xz
libssh-c3ae1336fbefda2e71c68149d831b576ab001ac9.zip
packet_crypt: Move secure_memcmp() to a shared source
Move the secure_memcmp() function to a shared source to make it available internally for other crypto implementations. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h
index ede71661..67d98392 100644
--- a/include/libssh/crypto.h
+++ b/include/libssh/crypto.h
@@ -213,4 +213,6 @@ int sshkdf_derive_key(struct ssh_crypto_struct *crypto,
int key_type, unsigned char *output,
size_t requested_len);
+int secure_memcmp(const void *s1, const void *s2, size_t n);
+
#endif /* _CRYPTO_H_ */