-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aee6877
commit f6a5f06
Showing
7 changed files
with
278 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef SSHNPD_PERMITOPEN_H | ||
#define SSHNPD_PERMITOPEN_H | ||
#include <atlogger/atlogger.h> | ||
#include <stdbool.h> | ||
#include <stddef.h> | ||
#include <stdint.h> | ||
|
||
// atlogger won't be available during the initial parsing of the parameters | ||
// (since we are waiting for the verbose flag to be set) | ||
int parse_permitopen(char *input, char ***permitopen_hosts, uint16_t **permitopen_ports, size_t *permitopen_len, | ||
bool is_logger_available); | ||
|
||
struct _permitopen_params { | ||
char *requested_host; | ||
uint16_t requested_port; | ||
|
||
char **permitopen_hosts; | ||
uint16_t *permitopen_ports; | ||
size_t permitopen_len; | ||
}; | ||
|
||
typedef struct _permitopen_params permitopen_params; | ||
|
||
bool should_permitopen(struct _permitopen_params *params); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.