]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/machine-credential.h
Merge pull request #30417 from YHNdnzj/unit-log-resource
[thirdparty/systemd.git] / src / shared / machine-credential.h
CommitLineData
e8ac916e
SL
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2#pragma once
3
4#include <sys/types.h>
5
6typedef struct MachineCredential {
7 char *id;
8 void *data;
9 size_t size;
10} MachineCredential;
11
12void machine_credential_free_all(MachineCredential *creds, size_t n);
13int machine_credential_set(MachineCredential **credentials, size_t *n_credentials, const char *cred_string);
14int machine_credential_load(MachineCredential **credentials, size_t *n_credentials, const char *cred_path);