1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

added first idea of API

This commit is contained in:
Falk Werner
2020-02-25 15:36:28 +01:00
parent 3e563f00d6
commit 767bafcd01
5 changed files with 143 additions and 3 deletions

View File

@@ -227,6 +227,27 @@ extern WFP_API void wfp_client_config_set_onread(
struct wfp_client_config * config,
wfp_read_fn * handler);
//------------------------------------------------------------------------------
/// \brief Enabled authentication with username and password.
///
/// Sets username and password for built-in username authentication.
///
/// \param config pointer to client configuration
/// \param username pointer to username
/// \param password pointer to password
//------------------------------------------------------------------------------
extern WFP_API void wfp_client_config_set_username_credentials(
struct wfp_client_config * config,
char const * username,
char const * password);
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
extern WFP_API void wfp_client_config_set_generic_credentials(
struct wfp_client_config * config,
char const * credentials_type,
char const * contents[]);
#ifdef __cplusplus
}
#endif