cctools
auth_ticket.h
1/*
2Copyright (C) 2022 The University of Notre Dame
3This software is distributed under the GNU General Public License.
4See the file COPYING for details.
5*/
6
7#ifndef AUTH_TICKET_H
8#define AUTH_TICKET_H
9
10typedef char * (*auth_ticket_server_callback_t)(const char *);
11
12int auth_ticket_register(void);
13
14/* Callback to lookup a ticket. Returns free()able char * to ticket public key */
15void auth_ticket_server_callback(auth_ticket_server_callback_t sc);
16
17/* Add tickets to client side tickets to try or, if NULL, load
18 * tickets from current working directory.
19 */
20void auth_ticket_load(const char *tickets);
21
22#endif