mirror of https://github.com/wolfSSL/wolfssh.git
Wildcard Config
1. Fix the wildcard config file include. 2. Update the guard flags so macOS can also use wildcards. 3. Change the user priviledge separating setting to a bitfield. 4. Add test_configuration test to gitignore.pull/445/head
parent
d42230d629
commit
85069b816e
|
@ -58,6 +58,7 @@ examples/scpclient/wolfscp
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
apps/wolfsshd/wolfsshd
|
apps/wolfsshd/wolfsshd
|
||||||
|
apps/wolfsshd/test/test_configuration
|
||||||
|
|
||||||
# test output
|
# test output
|
||||||
tests/*.test
|
tests/*.test
|
||||||
|
|
|
@ -59,7 +59,7 @@ struct WOLFSSHD_CONFIG {
|
||||||
char* authKeysFile;
|
char* authKeysFile;
|
||||||
long loginTimer;
|
long loginTimer;
|
||||||
word16 port;
|
word16 port;
|
||||||
byte usePrivilegeSeparation;
|
byte usePrivilegeSeparation:2;
|
||||||
byte passwordAuth:1;
|
byte passwordAuth:1;
|
||||||
byte pubKeyAuth:1;
|
byte pubKeyAuth:1;
|
||||||
byte permitRootLogin:1;
|
byte permitRootLogin:1;
|
||||||
|
@ -445,7 +445,7 @@ static int HandleInclude(WOLFSSHD_CONFIG *conf, const char *value)
|
||||||
/* Ignore trailing whitespace */
|
/* Ignore trailing whitespace */
|
||||||
ptr = value + WSTRLEN(value) - 1;
|
ptr = value + WSTRLEN(value) - 1;
|
||||||
while (ptr != value) {
|
while (ptr != value) {
|
||||||
if (!WISSPACE(*ptr)) {
|
if (WISSPACE(*ptr)) {
|
||||||
ptr--;
|
ptr--;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -474,7 +474,8 @@ static int HandleInclude(WOLFSSHD_CONFIG *conf, const char *value)
|
||||||
|
|
||||||
/* Use wildcard */
|
/* Use wildcard */
|
||||||
if (found) {
|
if (found) {
|
||||||
#ifdef __unix__
|
#if defined(__unix__) || defined(__unix) || \
|
||||||
|
(defined(__APPLE__) && defined(__MACH__))
|
||||||
int ret;
|
int ret;
|
||||||
struct dirent *dir;
|
struct dirent *dir;
|
||||||
DIR *d;
|
DIR *d;
|
||||||
|
|
Loading…
Reference in New Issue