16#include "ws_symbol_export.h"
66typedef struct cert_key_id cert_key_id_t;
91typedef unsigned (*secret_inject_count_func)(void);
92typedef bool (*secret_inject_export_func)(
wtap* wth);
93typedef char* (*secret_export_func)(
size_t* length);
104secrets_register_inject_type(
const char* name, secret_inject_count_func count_func, secret_inject_export_func inject_func, secret_export_func export_func);
107 SECRETS_EXPORT_SUCCESS = 0,
108 SECRETS_INVALID_CAPTURE_FILE,
109 SECRETS_UNKNOWN_PROTOCOL,
111 SECRETS_EXPORT_FAILED,
112} secrets_export_values;
120WS_DLL_PUBLIC
unsigned
131WS_DLL_PUBLIC secrets_export_values
143WS_DLL_PUBLIC secrets_export_values
144secrets_export(
const char* name,
char** secrets,
size_t* secrets_len,
unsigned* num_secrets);
164WS_DLL_PUBLIC GSList *
165secrets_get_available_keys(
void);
177secrets_verify_key(
const char *uri,
const char *password,
bool *need_password,
char **error);
180WS_DLL_PUBLIC GHashTable*
181privkey_hash_table_new(
void);
196secrets_rsa_decrypt(
const cert_key_id_t *key_id,
const uint8_t *encr,
unsigned encr_len, uint8_t **out,
unsigned *out_len);
WS_DLL_PUBLIC void secrets_wtap_callback(uint32_t secrets_type, const void *secrets, unsigned size)
Definition secrets.c:184
void(* secrets_block_callback_t)(const void *secrets, unsigned size)
Definition secrets.h:79
void secrets_init(void)
Initialize the secrets management system.
Definition secrets.c:81
WS_DLL_PUBLIC void secrets_register_type(uint32_t secrets_type, secrets_block_callback_t cb)
Definition secrets.c:109
WS_DLL_PUBLIC void secrets_inject_foreach(GHFunc func, void *param)
Definition secrets.c:178
WS_DLL_PUBLIC void secrets_register_inject_type(const char *name, secret_inject_count_func count_func, secret_inject_export_func inject_func, secret_export_func export_func)
Definition secrets.c:115
WS_DLL_PUBLIC secrets_export_values secrets_export_dsb(const char *name, wtap *wth)
Definition secrets.c:137
WS_DLL_PUBLIC secrets_export_values secrets_export(const char *name, char **secrets, size_t *secrets_len, unsigned *num_secrets)
Definition secrets.c:156
WS_DLL_PUBLIC unsigned secrets_get_count(const char *name)
Definition secrets.c:127
void secrets_cleanup(void)
Cleans up all secrets-related resources.
Definition secrets.c:92
Definition wtap_module.h:58