|
Packit Service |
4684c1 |
/*
|
|
Packit Service |
4684c1 |
* Copyright (C) 2010-2012 Free Software Foundation, Inc.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* Author: Nikos Mavrogiannopoulos
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* This file is part of GnuTLS.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* GnuTLS is free software: you can redistribute it and/or modify it
|
|
Packit Service |
4684c1 |
* under the terms of the GNU General Public License as published by
|
|
Packit Service |
4684c1 |
* the Free Software Foundation, either version 3 of the License, or
|
|
Packit Service |
4684c1 |
* (at your option) any later version.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* GnuTLS is distributed in the hope that it will be useful, but
|
|
Packit Service |
4684c1 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4684c1 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4684c1 |
* General Public License for more details.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
4684c1 |
* along with this program. If not, see
|
|
Packit Service |
4684c1 |
* <https://www.gnu.org/licenses/>.
|
|
Packit Service |
4684c1 |
*/
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#ifndef GNUTLS_SRC_P11TOOL_H
|
|
Packit Service |
4684c1 |
#define GNUTLS_SRC_P11TOOL_H
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#include "certtool-common.h"
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
void pkcs11_list(FILE * outfile, const char *url, int type,
|
|
Packit Service |
4684c1 |
unsigned int flags, unsigned int detailed,
|
|
Packit Service |
4684c1 |
common_info_st *);
|
|
Packit Service |
4684c1 |
void pkcs11_mechanism_list(FILE * outfile, const char *url,
|
|
Packit Service |
4684c1 |
unsigned int flags, common_info_st *);
|
|
Packit Service |
4684c1 |
void pkcs11_get_random(FILE * outfile, const char *url,
|
|
Packit Service |
4684c1 |
unsigned bytes, common_info_st *);
|
|
Packit Service |
4684c1 |
void pkcs11_export(FILE * outfile, const char *pkcs11_url,
|
|
Packit Service |
4684c1 |
unsigned int flags, common_info_st *);
|
|
Packit Service |
4684c1 |
void
|
|
Packit Service |
4684c1 |
pkcs11_export_chain(FILE * outfile, const char *url, unsigned int flags,
|
|
Packit Service |
4684c1 |
common_info_st * info);
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
void pkcs11_token_list(FILE * outfile, unsigned int detailed,
|
|
Packit Service |
4684c1 |
common_info_st *, unsigned brief);
|
|
Packit Service |
4684c1 |
void pkcs11_test_sign(FILE * outfile, const char *pkcs11_url,
|
|
Packit Service |
4684c1 |
unsigned int flags, common_info_st *);
|
|
Packit Service |
4684c1 |
void pkcs11_write(FILE * outfile, const char *pkcs11_url,
|
|
Packit Service |
4684c1 |
const char *label, const char *id,
|
|
Packit Service |
4684c1 |
unsigned int flags, common_info_st *);
|
|
Packit Service |
4684c1 |
void pkcs11_delete(FILE * outfile, const char *pkcs11_url,
|
|
Packit Service |
4684c1 |
unsigned int flags, common_info_st *);
|
|
Packit Service |
4684c1 |
void pkcs11_init(FILE * outfile, const char *pkcs11_url, const char *label,
|
|
Packit Service |
4684c1 |
common_info_st *);
|
|
Packit Service |
4684c1 |
void pkcs11_set_token_pin(FILE * outfile, const char *pkcs11_url, common_info_st *, unsigned so);
|
|
Packit Service |
4684c1 |
void pkcs11_generate(FILE * outfile, const char *url,
|
|
Packit Service |
4684c1 |
gnutls_pk_algorithm_t type, unsigned int bits,
|
|
Packit Service |
4684c1 |
const char *label, const char *id, int detailed,
|
|
Packit Service |
4684c1 |
unsigned int flags, common_info_st * info);
|
|
Packit Service |
4684c1 |
void pkcs11_export_pubkey(FILE * outfile, const char *url, int detailed,
|
|
Packit Service |
4684c1 |
unsigned int flags, common_info_st * info);
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
void pkcs11_set_id(FILE * outfile, const char *url, int detailed,
|
|
Packit Service |
4684c1 |
unsigned int flags, common_info_st * info,
|
|
Packit Service |
4684c1 |
const char *id);
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
void pkcs11_set_label(FILE * outfile, const char *url, int detailed,
|
|
Packit Service |
4684c1 |
unsigned int flags, common_info_st * info,
|
|
Packit Service |
4684c1 |
const char *label);
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#define PKCS11_TYPE_CRT_ALL 1
|
|
Packit Service |
4684c1 |
#define PKCS11_TYPE_TRUSTED 2
|
|
Packit Service |
4684c1 |
#define PKCS11_TYPE_PK 3
|
|
Packit Service |
4684c1 |
#define PKCS11_TYPE_ALL 4
|
|
Packit Service |
4684c1 |
#define PKCS11_TYPE_PRIVKEY 5
|
|
Packit Service |
4684c1 |
#define PKCS11_TYPE_INFO 6
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#endif /* GNUTLS_SRC_P11TOOL_H */
|