aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h4
-rw-r--r--include/libssh/pki.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index a0c9600c..d1ddffdc 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -304,6 +304,10 @@ enum ssh_keytypes_e{
SSH_KEYTYPE_ECDSA_P384_CERT01,
SSH_KEYTYPE_ECDSA_P521_CERT01,
SSH_KEYTYPE_ED25519_CERT01,
+ SSH_KEYTYPE_SK_ECDSA,
+ SSH_KEYTYPE_SK_ECDSA_CERT01,
+ SSH_KEYTYPE_SK_ED25519,
+ SSH_KEYTYPE_SK_ED25519_CERT01,
};
enum ssh_keycmp_e {
diff --git a/include/libssh/pki.h b/include/libssh/pki.h
index ec0ce9af..0f8cae47 100644
--- a/include/libssh/pki.h
+++ b/include/libssh/pki.h
@@ -21,6 +21,7 @@
#ifndef PKI_H_
#define PKI_H_
+#include <stdint.h>
#include "libssh/priv.h"
#ifdef HAVE_OPENSSL_EC_H
#include <openssl/ec.h>
@@ -80,6 +81,7 @@ struct ssh_key_struct {
ed25519_pubkey *ed25519_pubkey;
ed25519_privkey *ed25519_privkey;
#endif
+ ssh_string sk_application;
void *cert;
enum ssh_keytypes_e cert_type;
};
@@ -100,6 +102,10 @@ struct ssh_signature_struct {
ed25519_signature *ed25519_sig;
#endif
ssh_string raw_sig;
+
+ /* Security Key specific additions */
+ uint8_t sk_flags;
+ uint32_t sk_counter;
};
typedef struct ssh_signature_struct *ssh_signature;