mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 10:41:39 +00:00
parent
36ccfd21e7
commit
2e836bb553
@ -181,7 +181,7 @@ static void cli_session_init(pid_t proxy_cmd_pid) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void send_msg_service_request(char* servicename) {
|
static void send_msg_service_request(const char* servicename) {
|
||||||
|
|
||||||
TRACE(("enter send_msg_service_request: servicename='%s'", servicename))
|
TRACE(("enter send_msg_service_request: servicename='%s'", servicename))
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#include "dbrandom.h"
|
#include "dbrandom.h"
|
||||||
|
|
||||||
static void authclear(void);
|
static void authclear(void);
|
||||||
static int checkusername(char *username, unsigned int userlen);
|
static int checkusername(const char *username, unsigned int userlen);
|
||||||
|
|
||||||
/* initialise the first time for a session, resetting all parameters */
|
/* initialise the first time for a session, resetting all parameters */
|
||||||
void svr_authinitialise() {
|
void svr_authinitialise() {
|
||||||
@ -263,7 +263,7 @@ static int check_group_membership(gid_t check_gid, const char* username, gid_t u
|
|||||||
|
|
||||||
/* Check that the username exists and isn't disallowed (root), and has a valid shell.
|
/* Check that the username exists and isn't disallowed (root), and has a valid shell.
|
||||||
* returns DROPBEAR_SUCCESS on valid username, DROPBEAR_FAILURE on failure */
|
* returns DROPBEAR_SUCCESS on valid username, DROPBEAR_FAILURE on failure */
|
||||||
static int checkusername(char *username, unsigned int userlen) {
|
static int checkusername(const char *username, unsigned int userlen) {
|
||||||
|
|
||||||
char* listshell = NULL;
|
char* listshell = NULL;
|
||||||
char* usershell = NULL;
|
char* usershell = NULL;
|
||||||
|
@ -542,7 +542,7 @@ void load_all_hostkeys() {
|
|||||||
#if DROPBEAR_ECDSA
|
#if DROPBEAR_ECDSA
|
||||||
loadhostkey(ECDSA_PRIV_FILENAME, 0);
|
loadhostkey(ECDSA_PRIV_FILENAME, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DROPBEAR_DELAY_HOSTKEY
|
#if DROPBEAR_DELAY_HOSTKEY
|
||||||
if (svr_opts.delay_hostkey) {
|
if (svr_opts.delay_hostkey) {
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "auth.h"
|
#include "auth.h"
|
||||||
|
|
||||||
static void send_msg_service_accept(char *name, int len);
|
static void send_msg_service_accept(const char *name, int len);
|
||||||
|
|
||||||
/* processes a SSH_MSG_SERVICE_REQUEST, returning 0 if finished,
|
/* processes a SSH_MSG_SERVICE_REQUEST, returning 0 if finished,
|
||||||
* 1 if not */
|
* 1 if not */
|
||||||
@ -73,7 +73,7 @@ void recv_msg_service_request() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void send_msg_service_accept(char *name, int len) {
|
static void send_msg_service_accept(const char *name, int len) {
|
||||||
|
|
||||||
TRACE(("accepting service %s", name))
|
TRACE(("accepting service %s", name))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user