]>
Commit | Line | Data |
---|---|---|
e8ac916e SL |
1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | #pragma once | |
3 | ||
4 | #include <sys/types.h> | |
5 | ||
6 | typedef struct MachineCredential { | |
7 | char *id; | |
8 | void *data; | |
9 | size_t size; | |
10 | } MachineCredential; | |
11 | ||
12 | void machine_credential_free_all(MachineCredential *creds, size_t n); | |
13 | int machine_credential_set(MachineCredential **credentials, size_t *n_credentials, const char *cred_string); | |
14 | int machine_credential_load(MachineCredential **credentials, size_t *n_credentials, const char *cred_path); |