ssh_string ssh_get_pubkey(ssh_session session){ if(session==NULL || session->current_crypto ==NULL || session->current_crypto->server_pubkey==NULL) return NULL; else return ssh_string_copy(session->current_crypto->server_pubkey); }
ssh_string string_copy(ssh_string str){ return ssh_string_copy(str); }