ocsp.h
1 /* ocsp.h
2  *
3  * Copyright (C) 2006-2020 wolfSSL Inc.
4  *
5  * This file is part of wolfSSL.
6  *
7  * wolfSSL is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * wolfSSL is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20  */
21 
22 /* ocsp.h for libcurl */
23 
24 #ifndef WOLFSSL_OCSP_H_
25 #define WOLFSSL_OCSP_H_
26 
27 #ifdef HAVE_OCSP
28 #include <wolfssl/ocsp.h>
29 
30 #define OCSP_REQUEST OcspRequest
31 #define OCSP_RESPONSE OcspResponse
32 #define OCSP_BASICRESP WOLFSSL_OCSP_BASICRESP
33 #define OCSP_CERTID WOLFSSL_OCSP_CERTID
34 #define OCSP_ONEREQ WOLFSSL_OCSP_ONEREQ
35 
36 #define OCSP_REVOKED_STATUS_NOSTATUS -1
37 
38 
39 #define OCSP_RESPONSE_STATUS_SUCCESSFUL 0
40 #define OCSP_RESPONSE_STATUS_TRYLATER 3
41 
42 #define V_OCSP_CERTSTATUS_GOOD 0
43 #define V_OCSP_CERTSTATUS_REVOKED 1
44 #define V_OCSP_CERTSTATUS_UNKNOWN 2
45 
46 #define OCSP_resp_find_status wolfSSL_OCSP_resp_find_status
47 #define OCSP_cert_status_str wolfSSL_OCSP_cert_status_str
48 #define OCSP_check_validity wolfSSL_OCSP_check_validity
49 
50 #define OCSP_CERTID_free wolfSSL_OCSP_CERTID_free
51 #define OCSP_cert_to_id wolfSSL_OCSP_cert_to_id
52 
53 #define OCSP_BASICRESP_free wolfSSL_OCSP_BASICRESP_free
54 #define OCSP_basic_verify wolfSSL_OCSP_basic_verify
55 
56 #define OCSP_RESPONSE_free wolfSSL_OCSP_RESPONSE_free
57 #define d2i_OCSP_RESPONSE_bio wolfSSL_d2i_OCSP_RESPONSE_bio
58 #define d2i_OCSP_RESPONSE wolfSSL_d2i_OCSP_RESPONSE
59 #define i2d_OCSP_RESPONSE wolfSSL_i2d_OCSP_RESPONSE
60 #define OCSP_response_status wolfSSL_OCSP_response_status
61 #define OCSP_response_status_str wolfSSL_OCSP_response_status_str
62 #define OCSP_response_get1_basic wolfSSL_OCSP_response_get1_basic
63 #define OCSP_response_create wolfSSL_OCSP_response_create
64 
65 #define OCSP_REQUEST_new wolfSSL_OCSP_REQUEST_new
66 #define OCSP_REQUEST_free wolfSSL_OCSP_REQUEST_free
67 #define i2d_OCSP_REQUEST wolfSSL_i2d_OCSP_REQUEST
68 #define OCSP_request_add0_id wolfSSL_OCSP_request_add0_id
69 #define OCSP_request_add1_nonce wolfSSL_OCSP_request_add1_nonce
70 #define OCSP_check_nonce wolfSSL_OCSP_check_nonce
71 #define OCSP_id_get0_info wolfSSL_OCSP_id_get0_info
72 #define OCSP_crl_reason_str wolfSSL_OCSP_crl_reason_str
73 #define OCSP_REQUEST_add_ext wolfSSL_OCSP_REQUEST_add_ext
74 
75 #define OCSP_CERTID_dup wolfSSL_OCSP_CERTID_dup
76 
77 #define i2d_OCSP_REQUEST_bio wolfSSL_i2d_OCSP_REQUEST_bio
78 
79 #endif /* HAVE_OCSP */
80 
81 #endif /* WOLFSSL_OCSP_H_ */
82