mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
auth: Move ssh_auth_list to legacy functions.
This commit is contained in:
@@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#ifndef LEGACY_H_
|
#ifndef LEGACY_H_
|
||||||
#define LEGACY_H_
|
#define LEGACY_H_
|
||||||
|
LIBSSH_API int ssh_auth_list(ssh_session session);
|
||||||
|
|
||||||
LIBSSH_API void buffer_free(ssh_buffer buffer);
|
LIBSSH_API void buffer_free(ssh_buffer buffer);
|
||||||
LIBSSH_API void *buffer_get(ssh_buffer buffer);
|
LIBSSH_API void *buffer_get(ssh_buffer buffer);
|
||||||
LIBSSH_API uint32_t buffer_get_len(ssh_buffer buffer);
|
LIBSSH_API uint32_t buffer_get_len(ssh_buffer buffer);
|
||||||
|
@@ -367,7 +367,6 @@ LIBSSH_API uint32_t ssh_channel_window_size(ssh_channel channel);
|
|||||||
LIBSSH_API int ssh_try_publickey_from_file(ssh_session session, const char *keyfile,
|
LIBSSH_API int ssh_try_publickey_from_file(ssh_session session, const char *keyfile,
|
||||||
ssh_string *publickey, int *type);
|
ssh_string *publickey, int *type);
|
||||||
|
|
||||||
LIBSSH_API int ssh_auth_list(ssh_session session);
|
|
||||||
LIBSSH_API char *ssh_basename (const char *path);
|
LIBSSH_API char *ssh_basename (const char *path);
|
||||||
LIBSSH_API void ssh_clean_pubkey_hash(unsigned char **hash);
|
LIBSSH_API void ssh_clean_pubkey_hash(unsigned char **hash);
|
||||||
LIBSSH_API int ssh_connect(ssh_session session);
|
LIBSSH_API int ssh_connect(ssh_session session);
|
||||||
|
@@ -297,15 +297,6 @@ static int wait_auth_status(ssh_session session) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief retrieves available authentication methods for this session
|
|
||||||
* @deprecated
|
|
||||||
* @see ssh_userauth_list
|
|
||||||
*/
|
|
||||||
int ssh_auth_list(ssh_session session) {
|
|
||||||
return ssh_userauth_list(session, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief retrieves available authentication methods for this session
|
* @brief retrieves available authentication methods for this session
|
||||||
* @param[in] session the SSH session
|
* @param[in] session the SSH session
|
||||||
|
@@ -35,6 +35,13 @@
|
|||||||
#include <libssh/keys.h>
|
#include <libssh/keys.h>
|
||||||
#include <libssh/keyfiles.h>
|
#include <libssh/keyfiles.h>
|
||||||
|
|
||||||
|
/* AUTH FUNCTIONS */
|
||||||
|
int ssh_auth_list(ssh_session session) {
|
||||||
|
return ssh_userauth_list(session, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* BUFFER FUNCTIONS */
|
||||||
|
|
||||||
void buffer_free(ssh_buffer buffer){
|
void buffer_free(ssh_buffer buffer){
|
||||||
ssh_buffer_free(buffer);
|
ssh_buffer_free(buffer);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user