1 /* Build a X.509 attribute certificate
2 * Copyright (C) 2002 Ueli Galizzi, Ariane Seiler
3 * Copyright (C) 2004,2007 Andreas Steffen
4 * Hochschule fuer Technik Rapperswil, Switzerland
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
25 #include <crypto/x509.h>
26 #include <crypto/rsa/rsa_private_key.h>
27 #include <utils/linked_list.h>
30 * global variables accessible by both main() and build.c
32 extern x509_t
*usercert
;
33 extern x509_t
*signercert
;
34 extern rsa_private_key_t
*signerkey
;
35 extern linked_list_t
*groups
;
36 extern time_t notBefore
;
37 extern time_t notAfter
;
38 extern chunk_t serial
;
43 extern chunk_t
build_attr_cert(void);