[go: up one dir, main page]

File: chirp_ticket.h

package info (click to toggle)
cctools 7.1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 43,744 kB
  • sloc: ansic: 187,336; cpp: 20,196; python: 18,633; sh: 11,159; xml: 3,688; perl: 2,817; makefile: 1,105
file content (39 lines) | stat: -rw-r--r-- 1,195 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2005- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/

#ifndef CHIRP_TICKET_H
#define CHIRP_TICKET_H

#include <time.h>
#include <string.h>

struct chirp_ticket {
	char *subject;
	char *ticket;
	time_t expiration;
	short expired;
	size_t nrights;
	struct chirp_ticket_rights {
		char *directory;
		char *acl;
	} *rights;
};

int chirp_ticket_read(const char *ticket, struct chirp_ticket *ct);
void chirp_ticket_free(struct chirp_ticket *ct);

char *chirp_ticket_tostring(struct chirp_ticket *ct);
void chirp_ticket_name(const char *pk, char *ticket_subject, char *ticket_filename);
void chirp_ticket_subject(char *ticket_subject, const char *ticket_filename);
void chirp_ticket_filename(char *ticket_filename, const char *ticket_subject, const char *digest);
int chirp_ticket_isticketfilename(const char *ticket_filename, const char **digest);
int chirp_ticket_isticketsubject(const char *ticket_subject, const char **digest);
const char *chirp_ticket_digest(const char *pk);

#endif

/* vim: set noexpandtab tabstop=4: */