document the gnutls_pcert_st
[gnutls.git] / src / p11tool.h
blob4c5658e428e6ad64c07efc06040118a273faa92d
1 /*
2 * Copyright (C) 2010-2012 Free Software Foundation, Inc.
4 * Author: Nikos Mavrogiannopoulos
6 * This file is part of GnuTLS.
8 * GnuTLS is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * GnuTLS is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see
20 * <http://www.gnu.org/licenses/>.
23 #ifndef P11TOOL_H
24 #define P11TOOL_H
26 #include "certtool-common.h"
28 void pkcs11_list (FILE * outfile, const char *url, int type,
29 unsigned int login, unsigned int detailed,
30 common_info_st *);
31 void pkcs11_mechanism_list (FILE * outfile, const char *url,
32 unsigned int login, common_info_st *);
33 void pkcs11_export (FILE * outfile, const char *pkcs11_url,
34 unsigned int login, common_info_st *);
35 void pkcs11_token_list (FILE * outfile, unsigned int detailed,
36 common_info_st *);
37 void pkcs11_write (FILE * outfile, const char *pkcs11_url, const char *label,
38 int trusted, int private, unsigned int login, common_info_st *);
39 void pkcs11_delete (FILE * outfile, const char *pkcs11_url, int batch,
40 unsigned int login, common_info_st *);
41 void pkcs11_init (FILE * outfile, const char *pkcs11_url, const char *label,
42 common_info_st *);
43 void
44 pkcs11_generate (FILE * outfile, const char *url, gnutls_pk_algorithm_t type,
45 unsigned int bits,
46 const char *label, int private, int detailed,
47 unsigned int login, common_info_st * info);
49 #define PKCS11_TYPE_CRT_ALL 1
50 #define PKCS11_TYPE_TRUSTED 2
51 #define PKCS11_TYPE_PK 3
52 #define PKCS11_TYPE_ALL 4
53 #define PKCS11_TYPE_PRIVKEY 5
55 #endif