1
0
mirror of https://github.com/falk-werner/webfuse synced 2025-06-13 12:54:15 +00:00

fixes some style issues

This commit is contained in:
Falk Werner 2019-04-27 09:39:41 +02:00
parent b9ec36ef46
commit 05a761cfdf

View File

@ -213,7 +213,7 @@ Get file attributes.
#### readdir #### readdir
Read directory contents. Read directory contents.
Result is an array of name-inode pairs for each entry. The generic entries Result is an array of name-inode pairs for each entry. The generic entries
"." and ".." should also be provided. "." and ".." should also be provided.
webfuse daemon: {"method": "readdir", "params": [<filesystem>, <dir_inode>], "id": <id>} webfuse daemon: {"method": "readdir", "params": [<filesystem>, <dir_inode>], "id": <id>}
@ -332,7 +332,7 @@ If authentication is enabled, a provider must be authenticated by the adapter be
## Authentication ## Authentication
By default, webfuse daemon will redirect each filesystem call to the first connected provider without any authentication. By default, webfuse daemon will redirect each filesystem call to the first connected provider without any authentication.
This might be good for testing purposes or when an external authentication mechanism is used. In some use cases, explicit authentication is needed. Therefore, authentication can be enabled within webfuse daemon. This might be good for testing purposes or when an external authentication mechanism is used. In some use cases, explicit authentication is needed. Therefore, authentication can be enabled within webfuse daemon.
When authentication is enabled, filesystem calls are only redirected to a connected provider, after `authenticate` When authentication is enabled, filesystem calls are only redirected to a connected provider, after `authenticate`
@ -352,7 +352,7 @@ Authentication is enabled, if one or more authenticators are registered via `wf_
return ((NULL != username) && (0 == strcmp(username, "bob")) && return ((NULL != username) && (0 == strcmp(username, "bob")) &&
(NULL != password) && (0 == strcmp(password, "???"))); (NULL != password) && (0 == strcmp(password, "???")));
} }
wf_server_config * config = wf_server_config_create(); wf_server_config * config = wf_server_config_create();
wf_server_config_add_authenticator(config, "username", &authenticate, NULL); wf_server_config_add_authenticator(config, "username", &authenticate, NULL);