aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/pki.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-20 18:08:37 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-20 18:37:43 +0200
commitce41747faef799e8723840c0cd640ba44bbcc834 (patch)
tree8e2b95b3b5ac231480bf458990a48c6f75b35dc3 /include/libssh/pki.h
parent8acc3dd3afeff6b9f4c2327c9b2d0bc0f0eafb18 (diff)
downloadlibssh-ce41747faef799e8723840c0cd640ba44bbcc834.tar.gz
libssh-ce41747faef799e8723840c0cd640ba44bbcc834.tar.xz
libssh-ce41747faef799e8723840c0cd640ba44bbcc834.zip
pki: Introduce ssh_signature.
Diffstat (limited to 'include/libssh/pki.h')
-rw-r--r--include/libssh/pki.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h
index f4dc9502..6c009d5f 100644
--- a/include/libssh/pki.h
+++ b/include/libssh/pki.h
@@ -46,8 +46,25 @@ struct ssh_key_struct {
void *cert;
};
+struct ssh_signature_struct {
+ enum ssh_keytypes_e type;
+#ifdef HAVE_LIBGCRYPT
+ gcry_sexp_t dsa_sig;
+ gcry_sexp_t rsa_sig;
+#elif defined HAVE_LIBCRYPTO
+ DSA_SIG *dsa_sig;
+ ssh_string rsa_sig;
+#endif
+ void *ecdsa;
+};
+
+typedef struct ssh_signature_struct *ssh_signature;
+
void ssh_pki_log(const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
+ssh_signature ssh_signature_new(void);
+void ssh_signature_free(ssh_signature sign);
+
/* internal pki functions */
ssh_key pki_key_dup(const ssh_key key, int demote);