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>
35 extern void ocsptool_version (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
);
43 print_ocsp_verify_res (unsigned int output
);
46 check_ocsp_response (gnutls_x509_crt_t issuer
, gnutls_datum_t
*data
);