diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-01-28 19:55:45 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-01-28 19:55:45 +0100 |
commit | 0fcf4c8bd71df103f56bd532b64cbb5466381546 (patch) | |
tree | 06eae70e46ae072990c0d814eb8218f2bb18dbab /src/ocsptool-common.h | |
parent | efaa2ee176568fcd009ff2ca9daa1b7fdac4c491 (diff) | |
download | gnutls-0fcf4c8bd71df103f56bd532b64cbb5466381546.tar.gz |
gnutls-cli will try to verify ocsp responses if --ocsp is given.
Diffstat (limited to 'src/ocsptool-common.h')
-rw-r--r-- | src/ocsptool-common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ocsptool-common.h b/src/ocsptool-common.h index 729d1eb70a..ec17cfd399 100644 --- a/src/ocsptool-common.h +++ b/src/ocsptool-common.h @@ -21,6 +21,8 @@ #ifndef OCSPTOOL_COMMON_H #define OCSPTOOL_COMMON_H +#include <gnutls/ocsp.h> + enum { ACTION_NONE, @@ -31,5 +33,17 @@ enum }; extern void ocsptool_version (void); +void +_generate_request (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, + gnutls_datum_t * rdata, int nonce); +int send_ocsp_request(const char* server, + gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, + gnutls_datum_t * resp_data, int nonce); +void +print_ocsp_verify_res (unsigned int output); + +int +check_ocsp_response (gnutls_certificate_credentials xcred, + gnutls_datum_t *data); #endif |