licentivo-launch 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +35 -0
  4. data/ext/launch_native/extconf.rb +28 -0
  5. data/lib/licentivo_launch/vendor/licentivo.rb +262 -0
  6. data/lib/licentivo_launch.rb +352 -0
  7. data/vendor/LICENSE +21 -0
  8. data/vendor/NOTICE +17 -0
  9. data/vendor/VERSION +1 -0
  10. data/vendor/c/app.c +33 -0
  11. data/vendor/c/demo.c +77 -0
  12. data/vendor/c/feature_tasks.h +72 -0
  13. data/vendor/c/licentivo.c +382 -0
  14. data/vendor/c/licentivo.h +67 -0
  15. data/vendor/c/quickstart.c +51 -0
  16. data/vendor/c/test_vectors.c +4 -0
  17. data/vendor/c/vendor/Monocypher-LICENCE.md +173 -0
  18. data/vendor/c/vendor/cJSON-LICENSE +20 -0
  19. data/vendor/c/vendor/cJSON.c +3191 -0
  20. data/vendor/c/vendor/cJSON.h +306 -0
  21. data/vendor/c/vendor/monocypher-ed25519.c +500 -0
  22. data/vendor/c/vendor/monocypher-ed25519.h +140 -0
  23. data/vendor/c/vendor/monocypher.c +2956 -0
  24. data/vendor/c/vendor/monocypher.h +321 -0
  25. data/vendor/curl/COPYING.txt +22 -0
  26. data/vendor/curl/bin/libcurl-x64.dll +0 -0
  27. data/vendor/curl/include/brotli/decode.h +409 -0
  28. data/vendor/curl/include/brotli/encode.h +505 -0
  29. data/vendor/curl/include/brotli/port.h +302 -0
  30. data/vendor/curl/include/brotli/shared_dictionary.h +100 -0
  31. data/vendor/curl/include/brotli/types.h +83 -0
  32. data/vendor/curl/include/curl/curl.h +3374 -0
  33. data/vendor/curl/include/curl/curlver.h +77 -0
  34. data/vendor/curl/include/curl/easy.h +123 -0
  35. data/vendor/curl/include/curl/header.h +74 -0
  36. data/vendor/curl/include/curl/mprintf.h +85 -0
  37. data/vendor/curl/include/curl/multi.h +561 -0
  38. data/vendor/curl/include/curl/options.h +70 -0
  39. data/vendor/curl/include/curl/stdcheaders.h +35 -0
  40. data/vendor/curl/include/curl/system.h +399 -0
  41. data/vendor/curl/include/curl/typecheck-gcc.h +964 -0
  42. data/vendor/curl/include/curl/urlapi.h +156 -0
  43. data/vendor/curl/include/curl/websockets.h +98 -0
  44. data/vendor/curl/include/libpsl.h +207 -0
  45. data/vendor/curl/include/libssh2.h +1516 -0
  46. data/vendor/curl/include/libssh2_publickey.h +128 -0
  47. data/vendor/curl/include/libssh2_sftp.h +382 -0
  48. data/vendor/curl/include/nghttp2/nghttp2.h +6878 -0
  49. data/vendor/curl/include/nghttp2/nghttp2ver.h +42 -0
  50. data/vendor/curl/include/nghttp3/nghttp3.h +3704 -0
  51. data/vendor/curl/include/nghttp3/version.h +46 -0
  52. data/vendor/curl/include/ngtcp2/ngtcp2.h +7485 -0
  53. data/vendor/curl/include/ngtcp2/ngtcp2_crypto.h +1071 -0
  54. data/vendor/curl/include/ngtcp2/ngtcp2_crypto_quictls.h +147 -0
  55. data/vendor/curl/include/ngtcp2/version.h +51 -0
  56. data/vendor/curl/include/openssl/aes.h +120 -0
  57. data/vendor/curl/include/openssl/asn1.h +1121 -0
  58. data/vendor/curl/include/openssl/asn1t.h +996 -0
  59. data/vendor/curl/include/openssl/bio.h +716 -0
  60. data/vendor/curl/include/openssl/blowfish.h +106 -0
  61. data/vendor/curl/include/openssl/bn.h +480 -0
  62. data/vendor/curl/include/openssl/buffer.h +102 -0
  63. data/vendor/curl/include/openssl/camellia.h +121 -0
  64. data/vendor/curl/include/openssl/cast.h +99 -0
  65. data/vendor/curl/include/openssl/chacha.h +54 -0
  66. data/vendor/curl/include/openssl/cmac.h +81 -0
  67. data/vendor/curl/include/openssl/cms.h +541 -0
  68. data/vendor/curl/include/openssl/comp.h +7 -0
  69. data/vendor/curl/include/openssl/conf.h +189 -0
  70. data/vendor/curl/include/openssl/crypto.h +458 -0
  71. data/vendor/curl/include/openssl/ct.h +567 -0
  72. data/vendor/curl/include/openssl/curve25519.h +104 -0
  73. data/vendor/curl/include/openssl/des.h +215 -0
  74. data/vendor/curl/include/openssl/dh.h +245 -0
  75. data/vendor/curl/include/openssl/dsa.h +263 -0
  76. data/vendor/curl/include/openssl/dtls1.h +107 -0
  77. data/vendor/curl/include/openssl/ec.h +675 -0
  78. data/vendor/curl/include/openssl/ecdh.h +6 -0
  79. data/vendor/curl/include/openssl/ecdsa.h +6 -0
  80. data/vendor/curl/include/openssl/engine.h +215 -0
  81. data/vendor/curl/include/openssl/err.h +325 -0
  82. data/vendor/curl/include/openssl/evp.h +1288 -0
  83. data/vendor/curl/include/openssl/hkdf.h +65 -0
  84. data/vendor/curl/include/openssl/hmac.h +101 -0
  85. data/vendor/curl/include/openssl/idea.h +99 -0
  86. data/vendor/curl/include/openssl/kdf.h +137 -0
  87. data/vendor/curl/include/openssl/lhash.h +179 -0
  88. data/vendor/curl/include/openssl/md4.h +105 -0
  89. data/vendor/curl/include/openssl/md5.h +99 -0
  90. data/vendor/curl/include/openssl/mlkem.h +236 -0
  91. data/vendor/curl/include/openssl/modes.h +118 -0
  92. data/vendor/curl/include/openssl/obj_mac.h +4646 -0
  93. data/vendor/curl/include/openssl/objects.h +137 -0
  94. data/vendor/curl/include/openssl/ocsp.h +484 -0
  95. data/vendor/curl/include/openssl/opensslconf.h +16 -0
  96. data/vendor/curl/include/openssl/opensslfeatures.h +153 -0
  97. data/vendor/curl/include/openssl/opensslv.h +18 -0
  98. data/vendor/curl/include/openssl/ossl_typ.h +196 -0
  99. data/vendor/curl/include/openssl/pem.h +542 -0
  100. data/vendor/curl/include/openssl/pkcs12.h +284 -0
  101. data/vendor/curl/include/openssl/pkcs7.h +523 -0
  102. data/vendor/curl/include/openssl/poly1305.h +45 -0
  103. data/vendor/curl/include/openssl/posix_time.h +54 -0
  104. data/vendor/curl/include/openssl/rand.h +118 -0
  105. data/vendor/curl/include/openssl/rc2.h +101 -0
  106. data/vendor/curl/include/openssl/rc4.h +88 -0
  107. data/vendor/curl/include/openssl/ripemd.h +107 -0
  108. data/vendor/curl/include/openssl/rsa.h +603 -0
  109. data/vendor/curl/include/openssl/safestack.h +1739 -0
  110. data/vendor/curl/include/openssl/sha.h +190 -0
  111. data/vendor/curl/include/openssl/sm3.h +49 -0
  112. data/vendor/curl/include/openssl/sm4.h +47 -0
  113. data/vendor/curl/include/openssl/srtp.h +148 -0
  114. data/vendor/curl/include/openssl/ssl.h +2336 -0
  115. data/vendor/curl/include/openssl/ssl3.h +441 -0
  116. data/vendor/curl/include/openssl/stack.h +99 -0
  117. data/vendor/curl/include/openssl/tls1.h +764 -0
  118. data/vendor/curl/include/openssl/ts.h +660 -0
  119. data/vendor/curl/include/openssl/txt_db.h +112 -0
  120. data/vendor/curl/include/openssl/ui.h +397 -0
  121. data/vendor/curl/include/openssl/x509.h +1037 -0
  122. data/vendor/curl/include/openssl/x509_vfy.h +464 -0
  123. data/vendor/curl/include/openssl/x509v3.h +1039 -0
  124. data/vendor/curl/include/zconf.h +206 -0
  125. data/vendor/curl/include/zdict.h +481 -0
  126. data/vendor/curl/include/zlib.h +1859 -0
  127. data/vendor/curl/include/zlib_name_mangling.h +8 -0
  128. data/vendor/curl/include/zstd.h +3198 -0
  129. data/vendor/curl/include/zstd_errors.h +107 -0
  130. data/vendor/curl/lib/libcurl.dll.a +0 -0
  131. data/vendor/curl/licenses/brotli/LICENSE.txt +19 -0
  132. data/vendor/curl/licenses/certdata/LICENSE.url +2 -0
  133. data/vendor/curl/licenses/libpsl/COPYING.txt +20 -0
  134. data/vendor/curl/licenses/libressl/COPYING.txt +133 -0
  135. data/vendor/curl/licenses/libssh2/COPYING.txt +43 -0
  136. data/vendor/curl/licenses/nghttp2/COPYING.txt +23 -0
  137. data/vendor/curl/licenses/nghttp3/COPYING.txt +22 -0
  138. data/vendor/curl/licenses/ngtcp2/COPYING.txt +22 -0
  139. data/vendor/curl/licenses/psl/LICENSE.txt +373 -0
  140. data/vendor/curl/licenses/trurl/COPYING.txt +22 -0
  141. data/vendor/curl/licenses/zlibng/LICENSE.md +19 -0
  142. data/vendor/curl/licenses/zstd/LICENSE.txt +30 -0
  143. metadata +205 -0
@@ -0,0 +1,137 @@
1
+ /* $OpenBSD: objects.h,v 1.29 2024/03/02 09:51:36 tb Exp $ */
2
+ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3
+ * All rights reserved.
4
+ *
5
+ * This package is an SSL implementation written
6
+ * by Eric Young (eay@cryptsoft.com).
7
+ * The implementation was written so as to conform with Netscapes SSL.
8
+ *
9
+ * This library is free for commercial and non-commercial use as long as
10
+ * the following conditions are aheared to. The following conditions
11
+ * apply to all code found in this distribution, be it the RC4, RSA,
12
+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
13
+ * included with this distribution is covered by the same copyright terms
14
+ * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15
+ *
16
+ * Copyright remains Eric Young's, and as such any Copyright notices in
17
+ * the code are not to be removed.
18
+ * If this package is used in a product, Eric Young should be given attribution
19
+ * as the author of the parts of the library used.
20
+ * This can be in the form of a textual message at program startup or
21
+ * in documentation (online or textual) provided with the package.
22
+ *
23
+ * Redistribution and use in source and binary forms, with or without
24
+ * modification, are permitted provided that the following conditions
25
+ * are met:
26
+ * 1. Redistributions of source code must retain the copyright
27
+ * notice, this list of conditions and the following disclaimer.
28
+ * 2. Redistributions in binary form must reproduce the above copyright
29
+ * notice, this list of conditions and the following disclaimer in the
30
+ * documentation and/or other materials provided with the distribution.
31
+ * 3. All advertising materials mentioning features or use of this software
32
+ * must display the following acknowledgement:
33
+ * "This product includes cryptographic software written by
34
+ * Eric Young (eay@cryptsoft.com)"
35
+ * The word 'cryptographic' can be left out if the rouines from the library
36
+ * being used are not cryptographic related :-).
37
+ * 4. If you include any Windows specific code (or a derivative thereof) from
38
+ * the apps directory (application code) you must include an acknowledgement:
39
+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40
+ *
41
+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51
+ * SUCH DAMAGE.
52
+ *
53
+ * The licence and distribution terms for any publically available version or
54
+ * derivative of this code cannot be changed. i.e. this code cannot simply be
55
+ * copied and put under another distribution licence
56
+ * [including the GNU Public Licence.]
57
+ */
58
+
59
+ #ifndef HEADER_OBJECTS_H
60
+ #define HEADER_OBJECTS_H
61
+
62
+ #include <openssl/obj_mac.h>
63
+
64
+ #define SN_ED25519 SN_Ed25519
65
+ #define NID_ED25519 NID_Ed25519
66
+ #define OBJ_ED25519 OBJ_Ed25519
67
+
68
+ #include <openssl/bio.h>
69
+ #include <openssl/asn1.h>
70
+
71
+ #define OBJ_NAME_TYPE_UNDEF 0x00
72
+ #define OBJ_NAME_TYPE_MD_METH 0x01
73
+ #define OBJ_NAME_TYPE_CIPHER_METH 0x02
74
+ #define OBJ_NAME_TYPE_NUM 0x03
75
+
76
+ #define OBJ_NAME_ALIAS 0x8000
77
+
78
+ #ifdef __cplusplus
79
+ extern "C" {
80
+ #endif
81
+
82
+ typedef struct obj_name_st {
83
+ int type;
84
+ int alias;
85
+ const char *name;
86
+ const void *data;
87
+ } OBJ_NAME;
88
+
89
+ void OBJ_NAME_do_all(int type, void (*fn)(const OBJ_NAME *, void *arg),
90
+ void *arg);
91
+ void OBJ_NAME_do_all_sorted(int type, void (*fn)(const OBJ_NAME *, void *arg),
92
+ void *arg);
93
+
94
+ ASN1_OBJECT * OBJ_dup(const ASN1_OBJECT *o);
95
+ ASN1_OBJECT * OBJ_nid2obj(int n);
96
+ const char * OBJ_nid2ln(int n);
97
+ const char * OBJ_nid2sn(int n);
98
+ int OBJ_obj2nid(const ASN1_OBJECT *o);
99
+ ASN1_OBJECT * OBJ_txt2obj(const char *s, int no_name);
100
+ int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name);
101
+ int OBJ_txt2nid(const char *s);
102
+ int OBJ_ln2nid(const char *s);
103
+ int OBJ_sn2nid(const char *s);
104
+ int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b);
105
+
106
+ int OBJ_new_nid(int num);
107
+ int OBJ_create(const char *oid, const char *sn, const char *ln);
108
+ void OBJ_cleanup(void);
109
+ int OBJ_create_objects(BIO *in);
110
+
111
+ size_t OBJ_length(const ASN1_OBJECT *obj);
112
+ const unsigned char *OBJ_get0_data(const ASN1_OBJECT *obj);
113
+
114
+ int OBJ_find_sigid_algs(int signid, int *pdig_nid, int *ppkey_nid);
115
+ int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid);
116
+
117
+ void ERR_load_OBJ_strings(void);
118
+
119
+ /* Error codes for the OBJ functions. */
120
+
121
+ /* Function codes. */
122
+ #define OBJ_F_OBJ_ADD_OBJECT 105
123
+ #define OBJ_F_OBJ_CREATE 100
124
+ #define OBJ_F_OBJ_DUP 101
125
+ #define OBJ_F_OBJ_NAME_NEW_INDEX 106
126
+ #define OBJ_F_OBJ_NID2LN 102
127
+ #define OBJ_F_OBJ_NID2OBJ 103
128
+ #define OBJ_F_OBJ_NID2SN 104
129
+
130
+ /* Reason codes. */
131
+ #define OBJ_R_MALLOC_FAILURE 100
132
+ #define OBJ_R_UNKNOWN_NID 101
133
+
134
+ #ifdef __cplusplus
135
+ }
136
+ #endif
137
+ #endif
@@ -0,0 +1,484 @@
1
+ /* $OpenBSD: ocsp.h,v 1.20 2022/07/12 14:42:49 kn Exp $ */
2
+ /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL
3
+ * project. */
4
+
5
+ /* History:
6
+ This file was transfered to Richard Levitte from CertCo by Kathy
7
+ Weinhold in mid-spring 2000 to be included in OpenSSL or released
8
+ as a patch kit. */
9
+
10
+ /* ====================================================================
11
+ * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved.
12
+ *
13
+ * Redistribution and use in source and binary forms, with or without
14
+ * modification, are permitted provided that the following conditions
15
+ * are met:
16
+ *
17
+ * 1. Redistributions of source code must retain the above copyright
18
+ * notice, this list of conditions and the following disclaimer.
19
+ *
20
+ * 2. Redistributions in binary form must reproduce the above copyright
21
+ * notice, this list of conditions and the following disclaimer in
22
+ * the documentation and/or other materials provided with the
23
+ * distribution.
24
+ *
25
+ * 3. All advertising materials mentioning features or use of this
26
+ * software must display the following acknowledgment:
27
+ * "This product includes software developed by the OpenSSL Project
28
+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
29
+ *
30
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
31
+ * endorse or promote products derived from this software without
32
+ * prior written permission. For written permission, please contact
33
+ * openssl-core@openssl.org.
34
+ *
35
+ * 5. Products derived from this software may not be called "OpenSSL"
36
+ * nor may "OpenSSL" appear in their names without prior written
37
+ * permission of the OpenSSL Project.
38
+ *
39
+ * 6. Redistributions of any form whatsoever must retain the following
40
+ * acknowledgment:
41
+ * "This product includes software developed by the OpenSSL Project
42
+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
43
+ *
44
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
45
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
47
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
48
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
49
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
50
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
51
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
52
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
53
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
54
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
55
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
56
+ * ====================================================================
57
+ *
58
+ * This product includes cryptographic software written by Eric Young
59
+ * (eay@cryptsoft.com). This product includes software written by Tim
60
+ * Hudson (tjh@cryptsoft.com).
61
+ *
62
+ */
63
+
64
+ #ifndef HEADER_OCSP_H
65
+ #define HEADER_OCSP_H
66
+
67
+ #include <openssl/ossl_typ.h>
68
+ #include <openssl/x509.h>
69
+ #include <openssl/x509v3.h>
70
+ #include <openssl/safestack.h>
71
+
72
+ #ifdef __cplusplus
73
+ extern "C" {
74
+ #endif
75
+
76
+ /*
77
+ * CRLReason ::= ENUMERATED {
78
+ * unspecified (0),
79
+ * keyCompromise (1),
80
+ * cACompromise (2),
81
+ * affiliationChanged (3),
82
+ * superseded (4),
83
+ * cessationOfOperation (5),
84
+ * certificateHold (6),
85
+ * removeFromCRL (8) }
86
+ */
87
+ #define OCSP_REVOKED_STATUS_NOSTATUS -1
88
+ #define OCSP_REVOKED_STATUS_UNSPECIFIED 0
89
+ #define OCSP_REVOKED_STATUS_KEYCOMPROMISE 1
90
+ #define OCSP_REVOKED_STATUS_CACOMPROMISE 2
91
+ #define OCSP_REVOKED_STATUS_AFFILIATIONCHANGED 3
92
+ #define OCSP_REVOKED_STATUS_SUPERSEDED 4
93
+ #define OCSP_REVOKED_STATUS_CESSATIONOFOPERATION 5
94
+ #define OCSP_REVOKED_STATUS_CERTIFICATEHOLD 6
95
+ #define OCSP_REVOKED_STATUS_REMOVEFROMCRL 8
96
+
97
+
98
+ /* Various flags and values */
99
+
100
+ #define OCSP_DEFAULT_NONCE_LENGTH 16
101
+
102
+ #define OCSP_NOCERTS 0x1
103
+ #define OCSP_NOINTERN 0x2
104
+ #define OCSP_NOSIGS 0x4
105
+ #define OCSP_NOCHAIN 0x8
106
+ #define OCSP_NOVERIFY 0x10
107
+ #define OCSP_NOEXPLICIT 0x20
108
+ #define OCSP_NOCASIGN 0x40
109
+ #define OCSP_NODELEGATED 0x80
110
+ #define OCSP_NOCHECKS 0x100
111
+ #define OCSP_TRUSTOTHER 0x200
112
+ #define OCSP_RESPID_KEY 0x400
113
+ #define OCSP_NOTIME 0x800
114
+
115
+ typedef struct ocsp_cert_id_st OCSP_CERTID;
116
+
117
+ DECLARE_STACK_OF(OCSP_CERTID)
118
+
119
+ typedef struct ocsp_one_request_st OCSP_ONEREQ;
120
+
121
+ DECLARE_STACK_OF(OCSP_ONEREQ)
122
+
123
+ typedef struct ocsp_req_info_st OCSP_REQINFO;
124
+ typedef struct ocsp_signature_st OCSP_SIGNATURE;
125
+ typedef struct ocsp_request_st OCSP_REQUEST;
126
+
127
+ #define OCSP_RESPONSE_STATUS_SUCCESSFUL 0
128
+ #define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST 1
129
+ #define OCSP_RESPONSE_STATUS_INTERNALERROR 2
130
+ #define OCSP_RESPONSE_STATUS_TRYLATER 3
131
+ #define OCSP_RESPONSE_STATUS_SIGREQUIRED 5
132
+ #define OCSP_RESPONSE_STATUS_UNAUTHORIZED 6
133
+
134
+ typedef struct ocsp_resp_bytes_st OCSP_RESPBYTES;
135
+
136
+ #define V_OCSP_RESPID_NAME 0
137
+ #define V_OCSP_RESPID_KEY 1
138
+
139
+ DECLARE_STACK_OF(OCSP_RESPID)
140
+
141
+ OCSP_RESPID *OCSP_RESPID_new(void);
142
+ void OCSP_RESPID_free(OCSP_RESPID *a);
143
+ OCSP_RESPID *d2i_OCSP_RESPID(OCSP_RESPID **a, const unsigned char **in, long len);
144
+ int i2d_OCSP_RESPID(OCSP_RESPID *a, unsigned char **out);
145
+ extern const ASN1_ITEM OCSP_RESPID_it;
146
+
147
+ typedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;
148
+
149
+ #define V_OCSP_CERTSTATUS_GOOD 0
150
+ #define V_OCSP_CERTSTATUS_REVOKED 1
151
+ #define V_OCSP_CERTSTATUS_UNKNOWN 2
152
+
153
+ typedef struct ocsp_cert_status_st OCSP_CERTSTATUS;
154
+ typedef struct ocsp_single_response_st OCSP_SINGLERESP;
155
+
156
+ DECLARE_STACK_OF(OCSP_SINGLERESP)
157
+
158
+ typedef struct ocsp_response_data_st OCSP_RESPDATA;
159
+
160
+ typedef struct ocsp_basic_response_st OCSP_BASICRESP;
161
+
162
+ typedef struct ocsp_crl_id_st OCSP_CRLID;
163
+ typedef struct ocsp_service_locator_st OCSP_SERVICELOC;
164
+
165
+ #define PEM_STRING_OCSP_REQUEST "OCSP REQUEST"
166
+ #define PEM_STRING_OCSP_RESPONSE "OCSP RESPONSE"
167
+
168
+ #define PEM_read_bio_OCSP_REQUEST(bp,x,cb) \
169
+ (OCSP_REQUEST *)PEM_ASN1_read_bio((char *(*)())d2i_OCSP_REQUEST, \
170
+ PEM_STRING_OCSP_REQUEST,bp,(char **)x,cb,NULL)
171
+
172
+ #define PEM_read_bio_OCSP_RESPONSE(bp,x,cb) \
173
+ (OCSP_RESPONSE *)PEM_ASN1_read_bio((char *(*)())d2i_OCSP_RESPONSE, \
174
+ PEM_STRING_OCSP_RESPONSE,bp,(char **)x,cb,NULL)
175
+
176
+ #define PEM_write_bio_OCSP_REQUEST(bp,o) \
177
+ PEM_ASN1_write_bio((int (*)())i2d_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,\
178
+ bp,(char *)o, NULL,NULL,0,NULL,NULL)
179
+
180
+ #define PEM_write_bio_OCSP_RESPONSE(bp,o) \
181
+ PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\
182
+ bp,(char *)o, NULL,NULL,0,NULL,NULL)
183
+
184
+ #define ASN1_BIT_STRING_digest(data,type,md,len) \
185
+ ASN1_item_digest(&ASN1_BIT_STRING_it,type,data,md,len)
186
+
187
+ #define OCSP_CERTSTATUS_dup(cs) \
188
+ ASN1_item_dup(&OCSP_CERTSTATUS_it, cs)
189
+
190
+ OCSP_CERTID *OCSP_CERTID_dup(OCSP_CERTID *id);
191
+
192
+ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);
193
+ OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,
194
+ int maxline);
195
+ int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);
196
+ void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);
197
+ int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);
198
+ int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx, const char *name,
199
+ const char *value);
200
+
201
+ OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject,
202
+ const X509 *issuer);
203
+
204
+ OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, const X509_NAME *issuerName,
205
+ const ASN1_BIT_STRING *issuerKey, const ASN1_INTEGER *serialNumber);
206
+
207
+ OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid);
208
+
209
+ int OCSP_request_add1_nonce(OCSP_REQUEST *req, unsigned char *val, int len);
210
+ int OCSP_basic_add1_nonce(OCSP_BASICRESP *resp, unsigned char *val, int len);
211
+ int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs);
212
+ int OCSP_copy_nonce(OCSP_BASICRESP *resp, OCSP_REQUEST *req);
213
+
214
+ int OCSP_request_set1_name(OCSP_REQUEST *req, X509_NAME *nm);
215
+ int OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert);
216
+
217
+ int OCSP_request_sign(OCSP_REQUEST *req, X509 *signer, EVP_PKEY *key,
218
+ const EVP_MD *dgst, STACK_OF(X509) *certs, unsigned long flags);
219
+
220
+ int OCSP_response_status(OCSP_RESPONSE *resp);
221
+ OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);
222
+
223
+ const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);
224
+ const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs);
225
+ const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs);
226
+ int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,
227
+ STACK_OF(X509) *extra_certs);
228
+
229
+ int OCSP_resp_count(OCSP_BASICRESP *bs);
230
+ OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);
231
+ const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP *bs);
232
+ const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);
233
+ int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
234
+ const ASN1_OCTET_STRING **pid, const X509_NAME **pname);
235
+
236
+ int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);
237
+ int OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason,
238
+ ASN1_GENERALIZEDTIME **revtime, ASN1_GENERALIZEDTIME **thisupd,
239
+ ASN1_GENERALIZEDTIME **nextupd);
240
+ int OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,
241
+ int *reason, ASN1_GENERALIZEDTIME **revtime,
242
+ ASN1_GENERALIZEDTIME **thisupd, ASN1_GENERALIZEDTIME **nextupd);
243
+ int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,
244
+ ASN1_GENERALIZEDTIME *nextupd, long sec, long maxsec);
245
+
246
+ int OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs,
247
+ X509_STORE *store, unsigned long flags);
248
+
249
+ int OCSP_parse_url(const char *url, char **phost, char **pport,
250
+ char **ppath, int *pssl);
251
+
252
+ int OCSP_id_issuer_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
253
+ int OCSP_id_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
254
+
255
+ int OCSP_request_onereq_count(OCSP_REQUEST *req);
256
+ OCSP_ONEREQ *OCSP_request_onereq_get0(OCSP_REQUEST *req, int i);
257
+ OCSP_CERTID *OCSP_onereq_get0_id(OCSP_ONEREQ *one);
258
+ int OCSP_id_get0_info(ASN1_OCTET_STRING **piNameHash, ASN1_OBJECT **pmd,
259
+ ASN1_OCTET_STRING **pikeyHash, ASN1_INTEGER **pserial,
260
+ OCSP_CERTID *cid);
261
+ int OCSP_request_is_signed(OCSP_REQUEST *req);
262
+ OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);
263
+ OCSP_SINGLERESP *OCSP_basic_add1_status(OCSP_BASICRESP *rsp, OCSP_CERTID *cid,
264
+ int status, int reason, ASN1_TIME *revtime, ASN1_TIME *thisupd,
265
+ ASN1_TIME *nextupd);
266
+ int OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert);
267
+ int OCSP_basic_sign(OCSP_BASICRESP *brsp, X509 *signer, EVP_PKEY *key,
268
+ const EVP_MD *dgst, STACK_OF(X509) *certs, unsigned long flags);
269
+
270
+ X509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim);
271
+
272
+ X509_EXTENSION *OCSP_accept_responses_new(char **oids);
273
+
274
+ X509_EXTENSION *OCSP_archive_cutoff_new(char* tim);
275
+
276
+ X509_EXTENSION *OCSP_url_svcloc_new(X509_NAME* issuer, const char **urls);
277
+
278
+ int OCSP_REQUEST_get_ext_count(OCSP_REQUEST *x);
279
+ int OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos);
280
+ int OCSP_REQUEST_get_ext_by_OBJ(OCSP_REQUEST *x, const ASN1_OBJECT *obj,
281
+ int lastpos);
282
+ int OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit,
283
+ int lastpos);
284
+ X509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc);
285
+ X509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc);
286
+ void *OCSP_REQUEST_get1_ext_d2i(OCSP_REQUEST *x, int nid, int *crit, int *idx);
287
+ int OCSP_REQUEST_add1_ext_i2d(OCSP_REQUEST *x, int nid, void *value,
288
+ int crit, unsigned long flags);
289
+ int OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc);
290
+
291
+ int OCSP_ONEREQ_get_ext_count(OCSP_ONEREQ *x);
292
+ int OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos);
293
+ int OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj,
294
+ int lastpos);
295
+ int OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos);
296
+ X509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc);
297
+ X509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc);
298
+ void *OCSP_ONEREQ_get1_ext_d2i(OCSP_ONEREQ *x, int nid, int *crit, int *idx);
299
+ int OCSP_ONEREQ_add1_ext_i2d(OCSP_ONEREQ *x, int nid, void *value, int crit,
300
+ unsigned long flags);
301
+ int OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc);
302
+
303
+ int OCSP_BASICRESP_get_ext_count(OCSP_BASICRESP *x);
304
+ int OCSP_BASICRESP_get_ext_by_NID(OCSP_BASICRESP *x, int nid, int lastpos);
305
+ int OCSP_BASICRESP_get_ext_by_OBJ(OCSP_BASICRESP *x, const ASN1_OBJECT *obj,
306
+ int lastpos);
307
+ int OCSP_BASICRESP_get_ext_by_critical(OCSP_BASICRESP *x, int crit,
308
+ int lastpos);
309
+ X509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc);
310
+ X509_EXTENSION *OCSP_BASICRESP_delete_ext(OCSP_BASICRESP *x, int loc);
311
+ void *OCSP_BASICRESP_get1_ext_d2i(OCSP_BASICRESP *x, int nid, int *crit,
312
+ int *idx);
313
+ int OCSP_BASICRESP_add1_ext_i2d(OCSP_BASICRESP *x, int nid, void *value,
314
+ int crit, unsigned long flags);
315
+ int OCSP_BASICRESP_add_ext(OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc);
316
+
317
+ int OCSP_SINGLERESP_get_ext_count(OCSP_SINGLERESP *x);
318
+ int OCSP_SINGLERESP_get_ext_by_NID(OCSP_SINGLERESP *x, int nid,
319
+ int lastpos);
320
+ int OCSP_SINGLERESP_get_ext_by_OBJ(OCSP_SINGLERESP *x,
321
+ const ASN1_OBJECT *obj, int lastpos);
322
+ int OCSP_SINGLERESP_get_ext_by_critical(OCSP_SINGLERESP *x, int crit,
323
+ int lastpos);
324
+ X509_EXTENSION *OCSP_SINGLERESP_get_ext(OCSP_SINGLERESP *x, int loc);
325
+ X509_EXTENSION *OCSP_SINGLERESP_delete_ext(OCSP_SINGLERESP *x, int loc);
326
+ void *OCSP_SINGLERESP_get1_ext_d2i(OCSP_SINGLERESP *x, int nid, int *crit,
327
+ int *idx);
328
+ int OCSP_SINGLERESP_add1_ext_i2d(OCSP_SINGLERESP *x, int nid, void *value,
329
+ int crit, unsigned long flags);
330
+ int OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex,
331
+ int loc);
332
+ const OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *x);
333
+
334
+ OCSP_SINGLERESP *OCSP_SINGLERESP_new(void);
335
+ void OCSP_SINGLERESP_free(OCSP_SINGLERESP *a);
336
+ OCSP_SINGLERESP *d2i_OCSP_SINGLERESP(OCSP_SINGLERESP **a, const unsigned char **in, long len);
337
+ int i2d_OCSP_SINGLERESP(OCSP_SINGLERESP *a, unsigned char **out);
338
+ extern const ASN1_ITEM OCSP_SINGLERESP_it;
339
+ OCSP_CERTSTATUS *OCSP_CERTSTATUS_new(void);
340
+ void OCSP_CERTSTATUS_free(OCSP_CERTSTATUS *a);
341
+ OCSP_CERTSTATUS *d2i_OCSP_CERTSTATUS(OCSP_CERTSTATUS **a, const unsigned char **in, long len);
342
+ int i2d_OCSP_CERTSTATUS(OCSP_CERTSTATUS *a, unsigned char **out);
343
+ extern const ASN1_ITEM OCSP_CERTSTATUS_it;
344
+ OCSP_REVOKEDINFO *OCSP_REVOKEDINFO_new(void);
345
+ void OCSP_REVOKEDINFO_free(OCSP_REVOKEDINFO *a);
346
+ OCSP_REVOKEDINFO *d2i_OCSP_REVOKEDINFO(OCSP_REVOKEDINFO **a, const unsigned char **in, long len);
347
+ int i2d_OCSP_REVOKEDINFO(OCSP_REVOKEDINFO *a, unsigned char **out);
348
+ extern const ASN1_ITEM OCSP_REVOKEDINFO_it;
349
+ OCSP_BASICRESP *OCSP_BASICRESP_new(void);
350
+ void OCSP_BASICRESP_free(OCSP_BASICRESP *a);
351
+ OCSP_BASICRESP *d2i_OCSP_BASICRESP(OCSP_BASICRESP **a, const unsigned char **in, long len);
352
+ int i2d_OCSP_BASICRESP(OCSP_BASICRESP *a, unsigned char **out);
353
+ extern const ASN1_ITEM OCSP_BASICRESP_it;
354
+ OCSP_RESPDATA *OCSP_RESPDATA_new(void);
355
+ void OCSP_RESPDATA_free(OCSP_RESPDATA *a);
356
+ OCSP_RESPDATA *d2i_OCSP_RESPDATA(OCSP_RESPDATA **a, const unsigned char **in, long len);
357
+ int i2d_OCSP_RESPDATA(OCSP_RESPDATA *a, unsigned char **out);
358
+ extern const ASN1_ITEM OCSP_RESPDATA_it;
359
+ OCSP_RESPID *OCSP_RESPID_new(void);
360
+ void OCSP_RESPID_free(OCSP_RESPID *a);
361
+ OCSP_RESPID *d2i_OCSP_RESPID(OCSP_RESPID **a, const unsigned char **in, long len);
362
+ int i2d_OCSP_RESPID(OCSP_RESPID *a, unsigned char **out);
363
+ extern const ASN1_ITEM OCSP_RESPID_it;
364
+ OCSP_RESPONSE *OCSP_RESPONSE_new(void);
365
+ void OCSP_RESPONSE_free(OCSP_RESPONSE *a);
366
+ OCSP_RESPONSE *d2i_OCSP_RESPONSE(OCSP_RESPONSE **a, const unsigned char **in, long len);
367
+ int i2d_OCSP_RESPONSE(OCSP_RESPONSE *a, unsigned char **out);
368
+ OCSP_RESPONSE *d2i_OCSP_RESPONSE_bio(BIO *bp, OCSP_RESPONSE **a);
369
+ int i2d_OCSP_RESPONSE_bio(BIO *bp, OCSP_RESPONSE *a);
370
+ extern const ASN1_ITEM OCSP_RESPONSE_it;
371
+ OCSP_RESPBYTES *OCSP_RESPBYTES_new(void);
372
+ void OCSP_RESPBYTES_free(OCSP_RESPBYTES *a);
373
+ OCSP_RESPBYTES *d2i_OCSP_RESPBYTES(OCSP_RESPBYTES **a, const unsigned char **in, long len);
374
+ int i2d_OCSP_RESPBYTES(OCSP_RESPBYTES *a, unsigned char **out);
375
+ extern const ASN1_ITEM OCSP_RESPBYTES_it;
376
+ OCSP_ONEREQ *OCSP_ONEREQ_new(void);
377
+ void OCSP_ONEREQ_free(OCSP_ONEREQ *a);
378
+ OCSP_ONEREQ *d2i_OCSP_ONEREQ(OCSP_ONEREQ **a, const unsigned char **in, long len);
379
+ int i2d_OCSP_ONEREQ(OCSP_ONEREQ *a, unsigned char **out);
380
+ extern const ASN1_ITEM OCSP_ONEREQ_it;
381
+ OCSP_CERTID *OCSP_CERTID_new(void);
382
+ void OCSP_CERTID_free(OCSP_CERTID *a);
383
+ OCSP_CERTID *d2i_OCSP_CERTID(OCSP_CERTID **a, const unsigned char **in, long len);
384
+ int i2d_OCSP_CERTID(OCSP_CERTID *a, unsigned char **out);
385
+ extern const ASN1_ITEM OCSP_CERTID_it;
386
+ OCSP_REQUEST *OCSP_REQUEST_new(void);
387
+ void OCSP_REQUEST_free(OCSP_REQUEST *a);
388
+ OCSP_REQUEST *d2i_OCSP_REQUEST(OCSP_REQUEST **a, const unsigned char **in, long len);
389
+ int i2d_OCSP_REQUEST(OCSP_REQUEST *a, unsigned char **out);
390
+ OCSP_REQUEST *d2i_OCSP_REQUEST_bio(BIO *bp, OCSP_REQUEST **a);
391
+ int i2d_OCSP_REQUEST_bio(BIO *bp, OCSP_REQUEST *a);
392
+ extern const ASN1_ITEM OCSP_REQUEST_it;
393
+ OCSP_SIGNATURE *OCSP_SIGNATURE_new(void);
394
+ void OCSP_SIGNATURE_free(OCSP_SIGNATURE *a);
395
+ OCSP_SIGNATURE *d2i_OCSP_SIGNATURE(OCSP_SIGNATURE **a, const unsigned char **in, long len);
396
+ int i2d_OCSP_SIGNATURE(OCSP_SIGNATURE *a, unsigned char **out);
397
+ extern const ASN1_ITEM OCSP_SIGNATURE_it;
398
+ OCSP_REQINFO *OCSP_REQINFO_new(void);
399
+ void OCSP_REQINFO_free(OCSP_REQINFO *a);
400
+ OCSP_REQINFO *d2i_OCSP_REQINFO(OCSP_REQINFO **a, const unsigned char **in, long len);
401
+ int i2d_OCSP_REQINFO(OCSP_REQINFO *a, unsigned char **out);
402
+ extern const ASN1_ITEM OCSP_REQINFO_it;
403
+ OCSP_CRLID *OCSP_CRLID_new(void);
404
+ void OCSP_CRLID_free(OCSP_CRLID *a);
405
+ OCSP_CRLID *d2i_OCSP_CRLID(OCSP_CRLID **a, const unsigned char **in, long len);
406
+ int i2d_OCSP_CRLID(OCSP_CRLID *a, unsigned char **out);
407
+ extern const ASN1_ITEM OCSP_CRLID_it;
408
+ OCSP_SERVICELOC *OCSP_SERVICELOC_new(void);
409
+ void OCSP_SERVICELOC_free(OCSP_SERVICELOC *a);
410
+ OCSP_SERVICELOC *d2i_OCSP_SERVICELOC(OCSP_SERVICELOC **a, const unsigned char **in, long len);
411
+ int i2d_OCSP_SERVICELOC(OCSP_SERVICELOC *a, unsigned char **out);
412
+ extern const ASN1_ITEM OCSP_SERVICELOC_it;
413
+
414
+ const char *OCSP_response_status_str(long s);
415
+ const char *OCSP_cert_status_str(long s);
416
+ const char *OCSP_crl_reason_str(long s);
417
+
418
+ int OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST* a, unsigned long flags);
419
+ int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE* o, unsigned long flags);
420
+
421
+ int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
422
+ X509_STORE *st, unsigned long flags);
423
+
424
+ void ERR_load_OCSP_strings(void);
425
+
426
+ /* Error codes for the OCSP functions. */
427
+
428
+ /* Function codes. */
429
+ #define OCSP_F_ASN1_STRING_ENCODE 100
430
+ #define OCSP_F_D2I_OCSP_NONCE 102
431
+ #define OCSP_F_OCSP_BASIC_ADD1_STATUS 103
432
+ #define OCSP_F_OCSP_BASIC_SIGN 104
433
+ #define OCSP_F_OCSP_BASIC_VERIFY 105
434
+ #define OCSP_F_OCSP_CERT_ID_NEW 101
435
+ #define OCSP_F_OCSP_CHECK_DELEGATED 106
436
+ #define OCSP_F_OCSP_CHECK_IDS 107
437
+ #define OCSP_F_OCSP_CHECK_ISSUER 108
438
+ #define OCSP_F_OCSP_CHECK_VALIDITY 115
439
+ #define OCSP_F_OCSP_MATCH_ISSUERID 109
440
+ #define OCSP_F_OCSP_PARSE_URL 114
441
+ #define OCSP_F_OCSP_REQUEST_SIGN 110
442
+ #define OCSP_F_OCSP_REQUEST_VERIFY 116
443
+ #define OCSP_F_OCSP_RESPONSE_GET1_BASIC 111
444
+ #define OCSP_F_OCSP_SENDREQ_BIO 112
445
+ #define OCSP_F_OCSP_SENDREQ_NBIO 117
446
+ #define OCSP_F_PARSE_HTTP_LINE1 118
447
+ #define OCSP_F_REQUEST_VERIFY 113
448
+
449
+ /* Reason codes. */
450
+ #define OCSP_R_BAD_DATA 100
451
+ #define OCSP_R_CERTIFICATE_VERIFY_ERROR 101
452
+ #define OCSP_R_DIGEST_ERR 102
453
+ #define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD 122
454
+ #define OCSP_R_ERROR_IN_THISUPDATE_FIELD 123
455
+ #define OCSP_R_ERROR_PARSING_URL 121
456
+ #define OCSP_R_MISSING_OCSPSIGNING_USAGE 103
457
+ #define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE 124
458
+ #define OCSP_R_NOT_BASIC_RESPONSE 104
459
+ #define OCSP_R_NO_CERTIFICATES_IN_CHAIN 105
460
+ #define OCSP_R_NO_CONTENT 106
461
+ #define OCSP_R_NO_PUBLIC_KEY 107
462
+ #define OCSP_R_NO_RESPONSE_DATA 108
463
+ #define OCSP_R_NO_REVOKED_TIME 109
464
+ #define OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 110
465
+ #define OCSP_R_REQUEST_NOT_SIGNED 128
466
+ #define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA 111
467
+ #define OCSP_R_ROOT_CA_NOT_TRUSTED 112
468
+ #define OCSP_R_SERVER_READ_ERROR 113
469
+ #define OCSP_R_SERVER_RESPONSE_ERROR 114
470
+ #define OCSP_R_SERVER_RESPONSE_PARSE_ERROR 115
471
+ #define OCSP_R_SERVER_WRITE_ERROR 116
472
+ #define OCSP_R_SIGNATURE_FAILURE 117
473
+ #define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND 118
474
+ #define OCSP_R_STATUS_EXPIRED 125
475
+ #define OCSP_R_STATUS_NOT_YET_VALID 126
476
+ #define OCSP_R_STATUS_TOO_OLD 127
477
+ #define OCSP_R_UNKNOWN_MESSAGE_DIGEST 119
478
+ #define OCSP_R_UNKNOWN_NID 120
479
+ #define OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE 129
480
+
481
+ #ifdef __cplusplus
482
+ }
483
+ #endif
484
+ #endif
@@ -0,0 +1,16 @@
1
+ /* $OpenBSD: opensslconf.h,v 1.4 2025/08/29 18:29:42 tb Exp $ */
2
+ /*
3
+ * Public domain.
4
+ */
5
+
6
+ #include <openssl/opensslfeatures.h>
7
+
8
+ #ifndef OPENSSL_FILE
9
+ #ifdef OPENSSL_NO_FILENAMES
10
+ #define OPENSSL_FILE ""
11
+ #define OPENSSL_LINE 0
12
+ #else
13
+ #define OPENSSL_FILE __FILE__
14
+ #define OPENSSL_LINE __LINE__
15
+ #endif
16
+ #endif