2 50b0790e 2020-09-11 stsp * Copyright (c) 2020 Stefan Sperling <stsp@openbsd.org>
4 50b0790e 2020-09-11 stsp * Permission to use, copy, modify, and distribute this software for any
5 50b0790e 2020-09-11 stsp * purpose with or without fee is hereby granted, provided that the above
6 50b0790e 2020-09-11 stsp * copyright notice and this permission notice appear in all copies.
8 50b0790e 2020-09-11 stsp * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 50b0790e 2020-09-11 stsp * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 50b0790e 2020-09-11 stsp * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 50b0790e 2020-09-11 stsp * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 50b0790e 2020-09-11 stsp * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 50b0790e 2020-09-11 stsp * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 50b0790e 2020-09-11 stsp * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 50b0790e 2020-09-11 stsp #define GOT_GOTCONFIG_FILENAME "got.conf"
19 50b0790e 2020-09-11 stsp struct got_gotconfig {
20 50b0790e 2020-09-11 stsp char *author;
21 50b0790e 2020-09-11 stsp int nremotes;
22 50b0790e 2020-09-11 stsp struct got_remote_repo *remotes;
23 4d5ee956 2022-07-02 jrick char *allowed_signers_file;
24 4d5ee956 2022-07-02 jrick char *revoked_signers_file;
25 d68f2c0e 2022-07-05 jrick char *signer_id;
28 50b0790e 2020-09-11 stsp const struct got_error *got_gotconfig_read(struct got_gotconfig **,
29 50b0790e 2020-09-11 stsp const char *);
30 50b0790e 2020-09-11 stsp void got_gotconfig_free(struct got_gotconfig *);