mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-08-22 19:04:35 +00:00

This is a 1:1 rewrite of swtpm_localca in 'C' as a final step to get rid of the python dependency. It addresses issue #437. Tested on: Cygwin, Fedora 33, Ubuntu Xenial & Bionic, FreeBSD, DragonFlyBSD, OpenBSD (i386), Mac, Debian (recent), Centos-8, CentOS (recent), Alpine (recent), OpenSUSE (recent), Fedora 28 PPC Big Endian Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
24 lines
613 B
C
24 lines
613 B
C
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
/*
|
|
* swtpm_localca_utils.h: Header file for swtpm_localca_utils.c
|
|
*
|
|
* Author: Stefan Berger, stefanb@linux.ibm.com
|
|
*
|
|
* Copyright (c) IBM Corporation, 2021
|
|
*/
|
|
|
|
#ifndef SWTPM_LOCALCA_UTILS_H
|
|
#define SWTPM_LOCALCA_UTILS_H
|
|
|
|
#include <glib.h>
|
|
|
|
gchar *get_config_value(gchar **config_file_lines, const gchar *varname, const gchar *fallback);
|
|
int get_config_envvars(gchar **config_file_lines, gchar ***env);
|
|
|
|
int makedir(const char *dirname, const char *purpose);
|
|
|
|
int lock_file(const gchar *lockfile);
|
|
void unlock_file(int lockfd);
|
|
|
|
#endif /* SWTPM_LOCALCA_UTILS_H */
|