clj-libssh2.libssh2.publickey
Functions for using the publickey subsystem. (RFC 4819)
add
(add pkey name blob blob-len overwrite num-attrs attrs)
int libssh2_publickey_add(LIBSSH2_PUBLICKEY *pkey,
const unsigned char *name,
const unsigned char *blob,
unsigned long blob_len,
char overwrite,
unsigned long num_attrs,
const libssh2_publickey_attribute attrs[]);
add-ex
(add-ex pkey name name-len blob blob-len overwrite num-attrs attrs)
int libssh2_publickey_add_ex(LIBSSH2_PUBLICKEY *pkey,
const unsigned char *name,
unsigned long name_len,
const unsigned char *blob,
unsigned long blob_len,
char overwrite,
unsigned long num_attrs,
const libssh2_publickey_attribute attrs[]);
init
(init session)
LIBSSH2_PUBLICKEY *libssh2_publickey_init(LIBSSH2_SESSION *session);
list-fetch
(list-fetch pkey num-keys pkey-list)
int libssh2_publickey_list_fetch(LIBSSH2_PUBLICKEY *pkey,
unsigned long *num_keys,
libssh2_publickey_list **pkey_list);
list-free
(list-free pkey pkey-list)
void libssh2_publickey_list_free(LIBSSH2_PUBLICKEY *pkey,
libssh2_publickey_list *pkey_list);
remove
(remove pkey name blob blob-len)
int libssh2_publickey_remove(LIBSSH2_PUBLICKEY *pkey,
const unsigned char *name,
const unsigned char *blob,
unsigned long blob_len);
remove-ex
(remove-ex pkey name name-len blob blob-len)
int libssh2_publickey_remove_ex(LIBSSH2_PUBLICKEY *pkey,
const unsigned char *name,
unsigned long name_len,
const unsigned char *blob,
unsigned long blob_len);
shutdown
(shutdown pkey)
int libssh2_publickey_shutdown(LIBSSH2_PUBLICKEY *pkey);