|
| 1 | +cimport c_ssh2 |
| 2 | + |
| 3 | +cdef extern from "libssh2_publickey.h" nogil: |
| 4 | + ctypedef struct LIBSSH2_PUBLICKEY: |
| 5 | + pass |
| 6 | + ctypedef struct libssh2_publickey_attribute: |
| 7 | + const char *name |
| 8 | + unsigned long name_len |
| 9 | + const char *value |
| 10 | + unsigned long value_len |
| 11 | + char mandatory |
| 12 | + ctypedef struct libssh2_publickey_list: |
| 13 | + unsigned char *packet # For freeing |
| 14 | + const unsigned char *name |
| 15 | + unsigned long name_len |
| 16 | + const unsigned char *blob |
| 17 | + unsigned long blob_len |
| 18 | + unsigned long num_attrs |
| 19 | + libssh2_publickey_attribute *attrs # free me |
| 20 | + LIBSSH2_PUBLICKEY *libssh2_publickey_init(c_ssh2.LIBSSH2_SESSION *session) |
| 21 | + int libssh2_publickey_add_ex(LIBSSH2_PUBLICKEY *pkey, |
| 22 | + const unsigned char *name, |
| 23 | + unsigned long name_len, |
| 24 | + const unsigned char *blob, |
| 25 | + unsigned long blob_len, char overwrite, |
| 26 | + unsigned long num_attrs, |
| 27 | + const libssh2_publickey_attribute attrs[]) |
| 28 | + int libssh2_publickey_add(LIBSSH2_PUBLICKEY *pkey, |
| 29 | + const unsigned char *name, |
| 30 | + const unsigned char *blob, |
| 31 | + unsigned long blob_len, char overwrite, |
| 32 | + unsigned long num_attrs, |
| 33 | + const libssh2_publickey_attribute attrs[]) |
| 34 | + int libssh2_publickey_remove_ex(LIBSSH2_PUBLICKEY *pkey, |
| 35 | + const unsigned char *name, |
| 36 | + unsigned long name_len, |
| 37 | + const unsigned char *blob, |
| 38 | + unsigned long blob_len) |
| 39 | + int libssh2_publickey_remove(LIBSSH2_PUBLICKEY *pkey, |
| 40 | + const unsigned char *name, |
| 41 | + const unsigned char *blob, |
| 42 | + unsigned long blob_len) |
| 43 | + int libssh2_publickey_list_fetch(LIBSSH2_PUBLICKEY *pkey, |
| 44 | + unsigned long *num_keys, |
| 45 | + libssh2_publickey_list **pkey_list) |
| 46 | + void libssh2_publickey_list_free(LIBSSH2_PUBLICKEY *pkey, |
| 47 | + libssh2_publickey_list *pkey_list) |
| 48 | + int libssh2_publickey_shutdown(LIBSSH2_PUBLICKEY *pkey) |
0 commit comments