1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-28 19:40:47 +00:00
seafile-server/common/seaf-utils.h
feiniks f3f818881f
Add read JWT_PRIVATE_KEY (#690)
* Add read JWT_PRIVATE_KEY

* Go add read JWT_PRIVATE_KEY

* Add seahub_settings.py

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-03 18:43:11 +08:00

31 lines
648 B
C

#ifndef SEAF_UTILS_H
#define SEAF_UTILS_H
#include <searpc-client.h>
struct _SeafileSession;
char *
seafile_session_get_tmp_file_path (struct _SeafileSession *session,
const char *basename,
char path[]);
int
load_database_config (struct _SeafileSession *session);
int
load_ccnet_database_config (struct _SeafileSession *session);
#ifdef FULL_FEATURE
int
load_seahub_config (SeafileSession *session, const char *conf_dir);
#endif
char *
seaf_gen_notif_server_jwt (const char *repo_id, const char *username);
char *
seaf_parse_auth_token (const char *auth_token);
#endif