diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-07 14:00:25 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-08 15:28:31 +0200 |
commit | 028888719a54794f998cc3572419361a73674929 (patch) | |
tree | 7ba7c5e4b8f4da97eb99f92b7d315ec1c4c7f20b /include/libssh/pki.h | |
parent | d8b41bcac3cffe5bebc76439d9d9f22e1e8c6d85 (diff) | |
download | libssh-028888719a54794f998cc3572419361a73674929.tar.gz libssh-028888719a54794f998cc3572419361a73674929.tar.xz libssh-028888719a54794f998cc3572419361a73674929.zip |
pki: Add pki_privatekey_type_from_string().
Diffstat (limited to 'include/libssh/pki.h')
-rw-r--r-- | include/libssh/pki.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 2015f5d..463f614 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -22,6 +22,11 @@ #ifndef PKI_H_ #define PKI_H_ +#define RSA_HEADER_BEGIN "-----BEGIN RSA PRIVATE KEY-----" +#define RSA_HEADER_END "-----END RSA PRIVATE KEY-----" +#define DSA_HEADER_BEGIN "-----BEGIN DSA PRIVATE KEY-----" +#define DSA_HEADER_END "-----END DSA PRIVATE KEY-----" + #define SSH_KEY_FLAG_EMPTY 0 #define SSH_KEY_FLAG_PUBLIC 1 #define SSH_KEY_FLAG_PRIVATE 2 @@ -52,5 +57,6 @@ ssh_string ssh_pki_do_sign(ssh_session session, ssh_buffer sigbuf, /* temporary functions, to be removed after migration to ssh_key */ ssh_public_key ssh_pki_convert_key_to_publickey(ssh_key key); +enum ssh_keytypes_e pki_privatekey_type_from_string(const char *privkey); #endif /* PKI_H_ */ |