Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Change Log
=============

1.2.0
++++++

Changes
--------

* Added private key file formats to `ssh.key` and `ssh.key.Key.export_privkey_file_format` for exporting private key
file with specified format - #96



1.1.1
+++++

Expand Down
11 changes: 11 additions & 0 deletions ssh/c_ssh.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ cdef extern from "libssh/libssh.h" nogil:
SSH_KEYTYPE_ECDSA_P384_CERT01,
SSH_KEYTYPE_ECDSA_P521_CERT01,
SSH_KEYTYPE_ED25519_CERT01
enum ssh_file_format_e:
SSH_FILE_FORMAT_DEFAULT
SSH_FILE_FORMAT_OPENSSH
SSH_FILE_FORMAT_PEM
enum ssh_keycmp_e:
SSH_KEY_CMP_PUBLIC,
SSH_KEY_CMP_PRIVATE
Expand Down Expand Up @@ -438,6 +442,13 @@ cdef extern from "libssh/libssh.h" nogil:
int ssh_pki_export_privkey_file(
const ssh_key privkey, const char *passphrase,
ssh_auth_callback auth_fn, void *auth_data, const char *filename)
int ssh_pki_export_privkey_file_format(
const ssh_key privkey,
const char *passphrase,
ssh_auth_callback auth_fn,
void *auth_data,
const char *filename,
ssh_file_format_e format)

int ssh_pki_copy_cert_to_privkey(const ssh_key cert_key,
ssh_key privkey)
Expand Down
Loading