|
Packit Service |
4684c1 |
/*
|
|
Packit Service |
4684c1 |
* Copyright (C) 2011-2012 Free Software Foundation, Inc.
|
|
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_OCSPTOOL_COMMON_H
|
|
Packit Service |
4684c1 |
#define GNUTLS_SRC_OCSPTOOL_COMMON_H
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#include <gnutls/ocsp.h>
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
enum {
|
|
Packit Service |
4684c1 |
ACTION_NONE,
|
|
Packit Service |
4684c1 |
ACTION_REQ_INFO,
|
|
Packit Service |
4684c1 |
ACTION_RESP_INFO,
|
|
Packit Service |
4684c1 |
ACTION_VERIFY_RESP,
|
|
Packit Service |
4684c1 |
ACTION_GEN_REQ
|
|
Packit Service |
4684c1 |
};
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
extern void ocsptool_version(void);
|
|
Packit Service |
4684c1 |
void
|
|
Packit Service |
4684c1 |
_generate_request(gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer,
|
|
Packit Service |
4684c1 |
gnutls_datum_t * rdata, gnutls_datum_t* nonce);
|
|
Packit Service |
4684c1 |
int send_ocsp_request(const char *server,
|
|
Packit Service |
4684c1 |
gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer,
|
|
Packit Service |
4684c1 |
gnutls_datum_t * resp_data, gnutls_datum_t* nonce);
|
|
Packit Service |
4684c1 |
void print_ocsp_verify_res(unsigned int output);
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
int
|
|
Packit Service |
4684c1 |
check_ocsp_response(gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer,
|
|
Packit Service |
4684c1 |
gnutls_datum_t * data, gnutls_datum_t *nonce,
|
|
Packit Service |
4684c1 |
int verbose);
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#endif /* GNUTLS_SRC_OCSPTOOL_COMMON_H */
|