cctools
auth_ticket.h
1 /*
2 Copyright (C) 2010- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef AUTH_TICKET_H
8 #define AUTH_TICKET_H
9 
10 typedef char * (*auth_ticket_server_callback_t)(const char *);
11 
12 int auth_ticket_register(void);
13 
14 /* Callback to lookup a ticket. Returns free()able char * to ticket public key */
15 void 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  */
20 void auth_ticket_load(const char *tickets);
21 
22 #endif