diff options
Diffstat (limited to 'src/shared/creds-util.h')
-rw-r--r-- | src/shared/creds-util.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/shared/creds-util.h b/src/shared/creds-util.h new file mode 100644 index 0000000000..7310249424 --- /dev/null +++ b/src/shared/creds-util.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include <inttypes.h> +#include <stdbool.h> +#include <sys/types.h> + +#include "fd-util.h" + +#define CREDENTIAL_NAME_MAX FDNAME_MAX + +bool credential_name_valid(const char *s); + +int get_credentials_dir(const char **ret); + +int read_credential(const char *name, void **ret, size_t *ret_size); |