mirror of
https://github.com/falk-werner/webfuse-provider
synced 2026-03-02 04:09:18 +00:00
added wf_client_tlsconfig
This commit is contained in:
@@ -7,8 +7,9 @@ extern "C"
|
||||
#endif
|
||||
|
||||
|
||||
#define WF_CLIENT_CREATED 0x0001
|
||||
#define WF_CLIENT_DISPOSING 0x0002
|
||||
#define WF_CLIENT_INIT 0x0001
|
||||
#define WF_CLIENT_CLEANUP 0x0002
|
||||
#define WF_CLIENT_CREATED 0x0003
|
||||
|
||||
#define WF_CLIENT_CONNECTED 0x0011
|
||||
#define WF_CLIENT_DISCONNECTED 0x0012
|
||||
@@ -20,6 +21,8 @@ extern "C"
|
||||
#define WF_CLIENT_FILESYSTEM_ADDED 0x0031
|
||||
#define WF_CLIENT_FILESYSTEM_ADD_FAILED 0x0032
|
||||
|
||||
#define WF_CLIENT_GET_TLS_CONFIG 0x0041
|
||||
|
||||
struct wf_client;
|
||||
|
||||
typedef void wf_client_callback_fn(
|
||||
|
||||
32
include/webfuse/adapter/client_tlsconfig.h
Normal file
32
include/webfuse/adapter/client_tlsconfig.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef WF_ADAPTER_CLIENT_TLSCONFIG_H
|
||||
#define WF_ADAPTER_CLIENT_TLSCONFIG_H
|
||||
|
||||
#include <webfuse/adapter/api.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
struct wf_client_tlsconfig;
|
||||
|
||||
extern WF_API void
|
||||
wf_client_tlsconfig_set_keypath(
|
||||
struct wf_client_tlsconfig * config,
|
||||
char const * key_path);
|
||||
|
||||
extern WF_API void
|
||||
wf_client_tlsconfig_set_certpath(
|
||||
struct wf_client_tlsconfig * config,
|
||||
char const * cert_path);
|
||||
|
||||
extern WF_API void
|
||||
wf_client_tlsconfig_set_cafilepath(
|
||||
struct wf_client_tlsconfig * config,
|
||||
char const * cafile_path);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -12,10 +12,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
#define WF_PROTOCOL_NAME_ADAPTER_SERVER ("webfuse-adapter-server")
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// \def WF_PROTOCOL_NAME_ADAPTER_CLIENT
|
||||
/// \brief Name of the websocket protocol an adapter client is running.
|
||||
//------------------------------------------------------------------------------
|
||||
#define WF_PROTOCOL_NAME_ADAPTER_CLIENT ("webfuse-adapter-client")
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// \def WF_PROTOCOL_NAME_PROVIDER_CLIENT
|
||||
/// \brief Name of the websocket protocol an provider client is running.
|
||||
//------------------------------------------------------------------------------
|
||||
#define WF_PROTOCOL_NAME_PROVIDER_CLIENT ("webfuse-provider-client")
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// \def WF_PROTOCOL_NAME_PROVIDER_SERVER
|
||||
/// \brief Name of the websocket protocol an provider server is running.
|
||||
//------------------------------------------------------------------------------
|
||||
#define WF_PROTOCOL_NAME_PROVIDER_SERVER ("webfuse-provider-server")
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <webfuse/adapter/client.h>
|
||||
#include <webfuse/adapter/client_callback.h>
|
||||
#include <webfuse/adapter/client_tlsconfig.h>
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user