added ssh_message_auth_reply_pk_ok_simple
Этот коммит содержится в:
родитель
2e22d6ef99
Коммит
43288bc4f2
@ -151,6 +151,8 @@ LIBSSH_API ssh_public_key ssh_message_auth_publickey(ssh_message msg);
|
||||
LIBSSH_API enum ssh_publickey_state_e ssh_message_auth_publickey_state(ssh_message msg);
|
||||
LIBSSH_API int ssh_message_auth_reply_success(ssh_message msg,int partial);
|
||||
LIBSSH_API int ssh_message_auth_reply_pk_ok(ssh_message msg, ssh_string algo, ssh_string pubkey);
|
||||
LIBSSH_API int ssh_message_auth_reply_pk_ok_simple(ssh_message msg);
|
||||
|
||||
LIBSSH_API int ssh_message_auth_set_methods(ssh_message msg, int methods);
|
||||
|
||||
LIBSSH_API int ssh_message_service_reply_success(ssh_message msg);
|
||||
|
@ -808,6 +808,19 @@ int ssh_message_auth_reply_pk_ok(ssh_message msg, ssh_string algo, ssh_string pu
|
||||
return packet_send(msg->session);
|
||||
}
|
||||
|
||||
int ssh_message_auth_reply_pk_ok_simple(ssh_message msg) {
|
||||
ssh_string algo;
|
||||
ssh_string pubkey;
|
||||
int ret;
|
||||
algo=string_from_char(msg->auth_request.public_key->type_c);
|
||||
pubkey=publickey_to_string(msg->auth_request.public_key);
|
||||
ret=ssh_message_auth_reply_pk_ok(msg,algo,pubkey);
|
||||
string_free(algo);
|
||||
string_free(pubkey);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
char *ssh_message_channel_request_open_originator(ssh_message msg){
|
||||
return msg->channel_request_open.originator;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user