]> git.proxmox.com Git - swtpm.git/blob - src/swtpm_localca/swtpm_localca_utils.h
Move swtpm_localca sources from samples/ to src/
[swtpm.git] / src / swtpm_localca / swtpm_localca_utils.h
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /*
3 * swtpm_localca_utils.h: Header file for swtpm_localca_utils.c
4 *
5 * Author: Stefan Berger, stefanb@linux.ibm.com
6 *
7 * Copyright (c) IBM Corporation, 2021
8 */
9
10 #ifndef SWTPM_LOCALCA_UTILS_H
11 #define SWTPM_LOCALCA_UTILS_H
12
13 #include <glib.h>
14
15 gchar *get_config_value(gchar **config_file_lines, const gchar *varname, const gchar *fallback);
16 int get_config_envvars(gchar **config_file_lines, gchar ***env);
17
18 int makedir(const char *dirname, const char *purpose);
19
20 int lock_file(const gchar *lockfile);
21 void unlock_file(int lockfd);
22
23 #endif /* SWTPM_LOCALCA_UTILS_H */