1libssh2_publickey_add_ex(3) libssh2 manual libssh2_publickey_add_ex(3)
2
3
4
6 libssh2_publickey_add_ex - Add a public key entry
7
9 #include <libssh2.h>
10
11 int libssh2_publickey_add_ex(LIBSSH2_PUBLICKEY *pkey, const unsigned
12 char *name,
13 unsigned long name_len, const unsigned char
14 *blob,
15 unsigned long blob_len, char overwrite,
16 unsigned long num_attrs,
17 const libssh2_publickey_attribute attrs[])
18
19
21 TBD
22
24 Returns 0 on success, negative on failure.
25
27 LIBSSH2_ERROR_BAD_USE LIBSSH2_ERROR_ALLOC, LIBSSH2_ERROR_EAGAIN LIB‐
28 SSH2_ERROR_SOCKET_SEND, LIBSSH2_ERROR_SOCKET_TIMEOUT, LIB‐
29 SSH2_ERROR_PUBLICKEY_PROTOCOL,
30
32libssh2 0.15 1 Jun 2007 libssh2_publickey_add_ex(3)