summaryrefslogtreecommitdiffstats
path: root/include/libssh
diff options
context:
space:
mode:
authorAxel Eppe <aeppe@google.com>2015-08-23 17:26:11 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-09-07 13:29:23 +0200
commit6da4e21065c30eee630cf448b4f45d29815c6f14 (patch)
treed1a948dee74281e5a7fd27e2ef011a6288fd4a41 /include/libssh
parent7bfe8d2f036b67cad164e5a74ede9f8c98912f3d (diff)
downloadlibssh-6da4e21065c30eee630cf448b4f45d29815c6f14.tar.gz
libssh-6da4e21065c30eee630cf448b4f45d29815c6f14.tar.xz
libssh-6da4e21065c30eee630cf448b4f45d29815c6f14.zip
pki: Add rsa, dss certificate key type definitions
- Add rsa/dsa (ssh-{rsa,dss}-cert-v01@openssh.com) as key types. - Add a cert_type member in the ssh_key struct. Signed-off-by: Axel Eppe <aeppe@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h4
-rw-r--r--include/libssh/pki.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 232d7c2b..9a243470 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -254,7 +254,9 @@ enum ssh_keytypes_e{
SSH_KEYTYPE_RSA,
SSH_KEYTYPE_RSA1,
SSH_KEYTYPE_ECDSA,
- SSH_KEYTYPE_ED25519
+ SSH_KEYTYPE_ED25519,
+ SSH_KEYTYPE_DSS_CERT01,
+ SSH_KEYTYPE_RSA_CERT01
};
enum ssh_keycmp_e {
diff --git a/include/libssh/pki.h b/include/libssh/pki.h
index 9f9ddf4a..b146d982 100644
--- a/include/libssh/pki.h
+++ b/include/libssh/pki.h
@@ -60,6 +60,7 @@ struct ssh_key_struct {
ed25519_pubkey *ed25519_pubkey;
ed25519_privkey *ed25519_privkey;
void *cert;
+ enum ssh_keytypes_e cert_type;
};
struct ssh_signature_struct {