corrected copyright notices
[gnutls.git] / src / ocsptool-common.h
blob1158b61f402f2b3a3150f07c13f9d05d2731fa3e
1 /*
2 * Copyright (C) 2011-2012 Free Software Foundation, Inc.
4 * This file is part of GnuTLS.
6 * GnuTLS is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * GnuTLS is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see
18 * <http://www.gnu.org/licenses/>.
21 #ifndef OCSPTOOL_COMMON_H
22 #define OCSPTOOL_COMMON_H
24 #include <gnutls/ocsp.h>
26 enum
28 ACTION_NONE,
29 ACTION_REQ_INFO,
30 ACTION_RESP_INFO,
31 ACTION_VERIFY_RESP,
32 ACTION_GEN_REQ
35 extern void ocsptool_version (void);
36 void
37 _generate_request (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer,
38 gnutls_datum_t * rdata, int nonce);
39 int send_ocsp_request(const char* server,
40 gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer,
41 gnutls_datum_t * resp_data, int nonce);
42 void
43 print_ocsp_verify_res (unsigned int output);
45 int
46 check_ocsp_response (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, gnutls_datum_t *data);
48 #endif