motion-openssl 0.1.0

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 (88) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +53 -0
  3. data/lib/OpenSSL/aes.h +149 -0
  4. data/lib/OpenSSL/asn1.h +1419 -0
  5. data/lib/OpenSSL/asn1_mac.h +579 -0
  6. data/lib/OpenSSL/asn1t.h +973 -0
  7. data/lib/OpenSSL/bio.h +879 -0
  8. data/lib/OpenSSL/blowfish.h +130 -0
  9. data/lib/OpenSSL/bn.h +939 -0
  10. data/lib/OpenSSL/buffer.h +125 -0
  11. data/lib/OpenSSL/camellia.h +132 -0
  12. data/lib/OpenSSL/cast.h +107 -0
  13. data/lib/OpenSSL/cmac.h +82 -0
  14. data/lib/OpenSSL/cms.h +555 -0
  15. data/lib/OpenSSL/comp.h +79 -0
  16. data/lib/OpenSSL/conf.h +267 -0
  17. data/lib/OpenSSL/conf_api.h +89 -0
  18. data/lib/OpenSSL/crypto.h +661 -0
  19. data/lib/OpenSSL/des.h +257 -0
  20. data/lib/OpenSSL/des_old.h +497 -0
  21. data/lib/OpenSSL/dh.h +392 -0
  22. data/lib/OpenSSL/dsa.h +332 -0
  23. data/lib/OpenSSL/dso.h +451 -0
  24. data/lib/OpenSSL/dtls1.h +272 -0
  25. data/lib/OpenSSL/e_os2.h +328 -0
  26. data/lib/OpenSSL/ebcdic.h +26 -0
  27. data/lib/OpenSSL/ec.h +1282 -0
  28. data/lib/OpenSSL/ecdh.h +134 -0
  29. data/lib/OpenSSL/ecdsa.h +335 -0
  30. data/lib/OpenSSL/engine.h +960 -0
  31. data/lib/OpenSSL/err.h +389 -0
  32. data/lib/OpenSSL/evp.h +1534 -0
  33. data/lib/OpenSSL/hmac.h +109 -0
  34. data/lib/OpenSSL/idea.h +105 -0
  35. data/lib/OpenSSL/krb5_asn.h +240 -0
  36. data/lib/OpenSSL/kssl.h +197 -0
  37. data/lib/OpenSSL/lhash.h +240 -0
  38. data/lib/OpenSSL/libcrypto-tvOS.a +0 -0
  39. data/lib/OpenSSL/libcrypto.a +0 -0
  40. data/lib/OpenSSL/libssl-tvOS.a +0 -0
  41. data/lib/OpenSSL/libssl.a +0 -0
  42. data/lib/OpenSSL/md4.h +119 -0
  43. data/lib/OpenSSL/md5.h +119 -0
  44. data/lib/OpenSSL/mdc2.h +94 -0
  45. data/lib/OpenSSL/modes.h +163 -0
  46. data/lib/OpenSSL/obj_mac.h +4194 -0
  47. data/lib/OpenSSL/objects.h +1143 -0
  48. data/lib/OpenSSL/ocsp.h +637 -0
  49. data/lib/OpenSSL/opensslconf.h +262 -0
  50. data/lib/OpenSSL/opensslv.h +97 -0
  51. data/lib/OpenSSL/ossl_typ.h +211 -0
  52. data/lib/OpenSSL/pem.h +615 -0
  53. data/lib/OpenSSL/pem2.h +70 -0
  54. data/lib/OpenSSL/pkcs12.h +342 -0
  55. data/lib/OpenSSL/pkcs7.h +481 -0
  56. data/lib/OpenSSL/pqueue.h +99 -0
  57. data/lib/OpenSSL/rand.h +150 -0
  58. data/lib/OpenSSL/rc2.h +103 -0
  59. data/lib/OpenSSL/rc4.h +88 -0
  60. data/lib/OpenSSL/ripemd.h +105 -0
  61. data/lib/OpenSSL/rsa.h +664 -0
  62. data/lib/OpenSSL/safestack.h +2672 -0
  63. data/lib/OpenSSL/seed.h +149 -0
  64. data/lib/OpenSSL/sha.h +214 -0
  65. data/lib/OpenSSL/srp.h +169 -0
  66. data/lib/OpenSSL/srtp.h +147 -0
  67. data/lib/OpenSSL/ssl.h +3168 -0
  68. data/lib/OpenSSL/ssl2.h +265 -0
  69. data/lib/OpenSSL/ssl23.h +84 -0
  70. data/lib/OpenSSL/ssl3.h +774 -0
  71. data/lib/OpenSSL/stack.h +107 -0
  72. data/lib/OpenSSL/symhacks.h +516 -0
  73. data/lib/OpenSSL/tls1.h +810 -0
  74. data/lib/OpenSSL/ts.h +862 -0
  75. data/lib/OpenSSL/txt_db.h +112 -0
  76. data/lib/OpenSSL/ui.h +415 -0
  77. data/lib/OpenSSL/ui_compat.h +88 -0
  78. data/lib/OpenSSL/whrlpool.h +41 -0
  79. data/lib/OpenSSL/x509.h +1327 -0
  80. data/lib/OpenSSL/x509_vfy.h +647 -0
  81. data/lib/OpenSSL/x509v3.h +1055 -0
  82. data/lib/motion-openssl.rb +8 -0
  83. data/lib/motion-openssl/hooks.rb +8 -0
  84. data/lib/motion-openssl/hooks/openssl.rb +20 -0
  85. data/lib/motion-openssl/version.rb +5 -0
  86. data/motion/openssl.rb +1 -0
  87. data/motion/openssl/random.rb +18 -0
  88. metadata +229 -0
@@ -0,0 +1,262 @@
1
+ /* opensslconf.h */
2
+ /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+ /* OpenSSL was configured with the following options: */
8
+ #ifndef OPENSSL_SYSNAME_MACOSX
9
+ # define OPENSSL_SYSNAME_MACOSX
10
+ #endif
11
+ #ifndef OPENSSL_DOING_MAKEDEPEND
12
+
13
+
14
+ #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
15
+ # define OPENSSL_NO_EC_NISTP_64_GCC_128
16
+ #endif
17
+ #ifndef OPENSSL_NO_GMP
18
+ # define OPENSSL_NO_GMP
19
+ #endif
20
+ #ifndef OPENSSL_NO_JPAKE
21
+ # define OPENSSL_NO_JPAKE
22
+ #endif
23
+ #ifndef OPENSSL_NO_KRB5
24
+ # define OPENSSL_NO_KRB5
25
+ #endif
26
+ #ifndef OPENSSL_NO_LIBUNBOUND
27
+ # define OPENSSL_NO_LIBUNBOUND
28
+ #endif
29
+ #ifndef OPENSSL_NO_MD2
30
+ # define OPENSSL_NO_MD2
31
+ #endif
32
+ #ifndef OPENSSL_NO_RC5
33
+ # define OPENSSL_NO_RC5
34
+ #endif
35
+ #ifndef OPENSSL_NO_RFC3779
36
+ # define OPENSSL_NO_RFC3779
37
+ #endif
38
+ #ifndef OPENSSL_NO_SCTP
39
+ # define OPENSSL_NO_SCTP
40
+ #endif
41
+ #ifndef OPENSSL_NO_SSL_TRACE
42
+ # define OPENSSL_NO_SSL_TRACE
43
+ #endif
44
+ #ifndef OPENSSL_NO_STORE
45
+ # define OPENSSL_NO_STORE
46
+ #endif
47
+ #ifndef OPENSSL_NO_UNIT_TEST
48
+ # define OPENSSL_NO_UNIT_TEST
49
+ #endif
50
+
51
+ #endif /* OPENSSL_DOING_MAKEDEPEND */
52
+
53
+ #ifndef OPENSSL_THREADS
54
+ # define OPENSSL_THREADS
55
+ #endif
56
+ #ifndef OPENSSL_NO_ASM
57
+ # define OPENSSL_NO_ASM
58
+ #endif
59
+ #ifndef OPENSSL_NO_DYNAMIC_ENGINE
60
+ # define OPENSSL_NO_DYNAMIC_ENGINE
61
+ #endif
62
+
63
+ /* The OPENSSL_NO_* macros are also defined as NO_* if the application
64
+ asks for it. This is a transient feature that is provided for those
65
+ who haven't had the time to do the appropriate changes in their
66
+ applications. */
67
+ #ifdef OPENSSL_ALGORITHM_DEFINES
68
+ # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
69
+ # define NO_EC_NISTP_64_GCC_128
70
+ # endif
71
+ # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
72
+ # define NO_GMP
73
+ # endif
74
+ # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
75
+ # define NO_JPAKE
76
+ # endif
77
+ # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
78
+ # define NO_KRB5
79
+ # endif
80
+ # if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND)
81
+ # define NO_LIBUNBOUND
82
+ # endif
83
+ # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
84
+ # define NO_MD2
85
+ # endif
86
+ # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
87
+ # define NO_RC5
88
+ # endif
89
+ # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
90
+ # define NO_RFC3779
91
+ # endif
92
+ # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
93
+ # define NO_SCTP
94
+ # endif
95
+ # if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE)
96
+ # define NO_SSL_TRACE
97
+ # endif
98
+ # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
99
+ # define NO_STORE
100
+ # endif
101
+ # if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
102
+ # define NO_UNIT_TEST
103
+ # endif
104
+ #endif
105
+
106
+ /* crypto/opensslconf.h.in */
107
+
108
+ /* Generate 80386 code? */
109
+ #undef I386_ONLY
110
+
111
+ #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
112
+ #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
113
+ #define ENGINESDIR "/Users/mikagami/prj/gem/motion-openssl/OpenSSL-for-iPhone/bin/iPhoneSimulator9.2-x86_64.sdk/lib/engines"
114
+ #define OPENSSLDIR "/Users/mikagami/prj/gem/motion-openssl/OpenSSL-for-iPhone/bin/iPhoneSimulator9.2-x86_64.sdk"
115
+ #endif
116
+ #endif
117
+
118
+ #undef OPENSSL_UNISTD
119
+ #define OPENSSL_UNISTD <unistd.h>
120
+
121
+ #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
122
+
123
+ #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
124
+ #define IDEA_INT unsigned int
125
+ #endif
126
+
127
+ #if defined(HEADER_MD2_H) && !defined(MD2_INT)
128
+ #define MD2_INT unsigned int
129
+ #endif
130
+
131
+ #if defined(HEADER_RC2_H) && !defined(RC2_INT)
132
+ /* I need to put in a mod for the alpha - eay */
133
+ #define RC2_INT unsigned int
134
+ #endif
135
+
136
+ #if defined(HEADER_RC4_H)
137
+ #if !defined(RC4_INT)
138
+ /* using int types make the structure larger but make the code faster
139
+ * on most boxes I have tested - up to %20 faster. */
140
+ /*
141
+ * I don't know what does "most" mean, but declaring "int" is a must on:
142
+ * - Intel P6 because partial register stalls are very expensive;
143
+ * - elder Alpha because it lacks byte load/store instructions;
144
+ */
145
+ #define RC4_INT unsigned int
146
+ #endif
147
+ #if !defined(RC4_CHUNK)
148
+ /*
149
+ * This enables code handling data aligned at natural CPU word
150
+ * boundary. See crypto/rc4/rc4_enc.c for further details.
151
+ */
152
+ #define RC4_CHUNK unsigned long
153
+ #endif
154
+ #endif
155
+
156
+ #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
157
+ /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
158
+ * %20 speed up (longs are 8 bytes, int's are 4). */
159
+ #ifndef DES_LONG
160
+ #define DES_LONG unsigned int
161
+ #endif
162
+ #endif
163
+
164
+ #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
165
+ #define CONFIG_HEADER_BN_H
166
+ #undef BN_LLONG
167
+
168
+ /* Should we define BN_DIV2W here? */
169
+
170
+ /* Only one for the following should be defined */
171
+ #define SIXTY_FOUR_BIT_LONG
172
+ #undef SIXTY_FOUR_BIT
173
+ #undef THIRTY_TWO_BIT
174
+ #endif
175
+
176
+ #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
177
+ #define CONFIG_HEADER_RC4_LOCL_H
178
+ /* if this is defined data[i] is used instead of *data, this is a %20
179
+ * speedup on x86 */
180
+ #undef RC4_INDEX
181
+ #endif
182
+
183
+ #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
184
+ #define CONFIG_HEADER_BF_LOCL_H
185
+ #undef BF_PTR
186
+ #endif /* HEADER_BF_LOCL_H */
187
+
188
+ #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
189
+ #define CONFIG_HEADER_DES_LOCL_H
190
+ #ifndef DES_DEFAULT_OPTIONS
191
+ /* the following is tweaked from a config script, that is why it is a
192
+ * protected undef/define */
193
+ #ifndef DES_PTR
194
+ #undef DES_PTR
195
+ #endif
196
+
197
+ /* This helps C compiler generate the correct code for multiple functional
198
+ * units. It reduces register dependancies at the expense of 2 more
199
+ * registers */
200
+ #ifndef DES_RISC1
201
+ #undef DES_RISC1
202
+ #endif
203
+
204
+ #ifndef DES_RISC2
205
+ #undef DES_RISC2
206
+ #endif
207
+
208
+ #if defined(DES_RISC1) && defined(DES_RISC2)
209
+ #error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
210
+ #endif
211
+
212
+ /* Unroll the inner loop, this sometimes helps, sometimes hinders.
213
+ * Very mucy CPU dependant */
214
+ #ifndef DES_UNROLL
215
+ #define DES_UNROLL
216
+ #endif
217
+
218
+ /* These default values were supplied by
219
+ * Peter Gutman <pgut001@cs.auckland.ac.nz>
220
+ * They are only used if nothing else has been defined */
221
+ #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
222
+ /* Special defines which change the way the code is built depending on the
223
+ CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
224
+ even newer MIPS CPU's, but at the moment one size fits all for
225
+ optimization options. Older Sparc's work better with only UNROLL, but
226
+ there's no way to tell at compile time what it is you're running on */
227
+
228
+ #if defined( __sun ) || defined ( sun ) /* Newer Sparc's */
229
+ # define DES_PTR
230
+ # define DES_RISC1
231
+ # define DES_UNROLL
232
+ #elif defined( __ultrix ) /* Older MIPS */
233
+ # define DES_PTR
234
+ # define DES_RISC2
235
+ # define DES_UNROLL
236
+ #elif defined( __osf1__ ) /* Alpha */
237
+ # define DES_PTR
238
+ # define DES_RISC2
239
+ #elif defined ( _AIX ) /* RS6000 */
240
+ /* Unknown */
241
+ #elif defined( __hpux ) /* HP-PA */
242
+ /* Unknown */
243
+ #elif defined( __aux ) /* 68K */
244
+ /* Unknown */
245
+ #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
246
+ # define DES_UNROLL
247
+ #elif defined( __sgi ) /* Newer MIPS */
248
+ # define DES_PTR
249
+ # define DES_RISC2
250
+ # define DES_UNROLL
251
+ #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
252
+ # define DES_PTR
253
+ # define DES_RISC1
254
+ # define DES_UNROLL
255
+ #endif /* Systems-specific speed defines */
256
+ #endif
257
+
258
+ #endif /* DES_DEFAULT_OPTIONS */
259
+ #endif /* HEADER_DES_LOCL_H */
260
+ #ifdef __cplusplus
261
+ }
262
+ #endif
@@ -0,0 +1,97 @@
1
+ #ifndef HEADER_OPENSSLV_H
2
+ # define HEADER_OPENSSLV_H
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ /*-
9
+ * Numeric release version identifier:
10
+ * MNNFFPPS: major minor fix patch status
11
+ * The status nibble has one of the values 0 for development, 1 to e for betas
12
+ * 1 to 14, and f for release. The patch level is exactly that.
13
+ * For example:
14
+ * 0.9.3-dev 0x00903000
15
+ * 0.9.3-beta1 0x00903001
16
+ * 0.9.3-beta2-dev 0x00903002
17
+ * 0.9.3-beta2 0x00903002 (same as ...beta2-dev)
18
+ * 0.9.3 0x0090300f
19
+ * 0.9.3a 0x0090301f
20
+ * 0.9.4 0x0090400f
21
+ * 1.2.3z 0x102031af
22
+ *
23
+ * For continuity reasons (because 0.9.5 is already out, and is coded
24
+ * 0x00905100), between 0.9.5 and 0.9.6 the coding of the patch level
25
+ * part is slightly different, by setting the highest bit. This means
26
+ * that 0.9.5a looks like this: 0x0090581f. At 0.9.6, we can start
27
+ * with 0x0090600S...
28
+ *
29
+ * (Prior to 0.9.3-dev a different scheme was used: 0.9.2b is 0x0922.)
30
+ * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for
31
+ * major minor fix final patch/beta)
32
+ */
33
+ # define OPENSSL_VERSION_NUMBER 0x1000205fL
34
+ # ifdef OPENSSL_FIPS
35
+ # define OPENSSL_VERSION_TEXT "OpenSSL 1.0.2e-fips 3 Dec 2015"
36
+ # else
37
+ # define OPENSSL_VERSION_TEXT "OpenSSL 1.0.2e 3 Dec 2015"
38
+ # endif
39
+ # define OPENSSL_VERSION_PTEXT " part of " OPENSSL_VERSION_TEXT
40
+
41
+ /*-
42
+ * The macros below are to be used for shared library (.so, .dll, ...)
43
+ * versioning. That kind of versioning works a bit differently between
44
+ * operating systems. The most usual scheme is to set a major and a minor
45
+ * number, and have the runtime loader check that the major number is equal
46
+ * to what it was at application link time, while the minor number has to
47
+ * be greater or equal to what it was at application link time. With this
48
+ * scheme, the version number is usually part of the file name, like this:
49
+ *
50
+ * libcrypto.so.0.9
51
+ *
52
+ * Some unixen also make a softlink with the major verson number only:
53
+ *
54
+ * libcrypto.so.0
55
+ *
56
+ * On Tru64 and IRIX 6.x it works a little bit differently. There, the
57
+ * shared library version is stored in the file, and is actually a series
58
+ * of versions, separated by colons. The rightmost version present in the
59
+ * library when linking an application is stored in the application to be
60
+ * matched at run time. When the application is run, a check is done to
61
+ * see if the library version stored in the application matches any of the
62
+ * versions in the version string of the library itself.
63
+ * This version string can be constructed in any way, depending on what
64
+ * kind of matching is desired. However, to implement the same scheme as
65
+ * the one used in the other unixen, all compatible versions, from lowest
66
+ * to highest, should be part of the string. Consecutive builds would
67
+ * give the following versions strings:
68
+ *
69
+ * 3.0
70
+ * 3.0:3.1
71
+ * 3.0:3.1:3.2
72
+ * 4.0
73
+ * 4.0:4.1
74
+ *
75
+ * Notice how version 4 is completely incompatible with version, and
76
+ * therefore give the breach you can see.
77
+ *
78
+ * There may be other schemes as well that I haven't yet discovered.
79
+ *
80
+ * So, here's the way it works here: first of all, the library version
81
+ * number doesn't need at all to match the overall OpenSSL version.
82
+ * However, it's nice and more understandable if it actually does.
83
+ * The current library version is stored in the macro SHLIB_VERSION_NUMBER,
84
+ * which is just a piece of text in the format "M.m.e" (Major, minor, edit).
85
+ * For the sake of Tru64, IRIX, and any other OS that behaves in similar ways,
86
+ * we need to keep a history of version numbers, which is done in the
87
+ * macro SHLIB_VERSION_HISTORY. The numbers are separated by colons and
88
+ * should only keep the versions that are binary compatible with the current.
89
+ */
90
+ # define SHLIB_VERSION_HISTORY ""
91
+ # define SHLIB_VERSION_NUMBER "1.0.0"
92
+
93
+
94
+ #ifdef __cplusplus
95
+ }
96
+ #endif
97
+ #endif /* HEADER_OPENSSLV_H */
@@ -0,0 +1,211 @@
1
+ /* ====================================================================
2
+ * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
3
+ *
4
+ * Redistribution and use in source and binary forms, with or without
5
+ * modification, are permitted provided that the following conditions
6
+ * are met:
7
+ *
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ * notice, this list of conditions and the following disclaimer.
10
+ *
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in
13
+ * the documentation and/or other materials provided with the
14
+ * distribution.
15
+ *
16
+ * 3. All advertising materials mentioning features or use of this
17
+ * software must display the following acknowledgment:
18
+ * "This product includes software developed by the OpenSSL Project
19
+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
20
+ *
21
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
22
+ * endorse or promote products derived from this software without
23
+ * prior written permission. For written permission, please contact
24
+ * openssl-core@openssl.org.
25
+ *
26
+ * 5. Products derived from this software may not be called "OpenSSL"
27
+ * nor may "OpenSSL" appear in their names without prior written
28
+ * permission of the OpenSSL Project.
29
+ *
30
+ * 6. Redistributions of any form whatsoever must retain the following
31
+ * acknowledgment:
32
+ * "This product includes software developed by the OpenSSL Project
33
+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
34
+ *
35
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
36
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
37
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
38
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
39
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
41
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
42
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
43
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
44
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
46
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
47
+ * ====================================================================
48
+ *
49
+ * This product includes cryptographic software written by Eric Young
50
+ * (eay@cryptsoft.com). This product includes software written by Tim
51
+ * Hudson (tjh@cryptsoft.com).
52
+ *
53
+ */
54
+
55
+ #ifndef HEADER_OPENSSL_TYPES_H
56
+ # define HEADER_OPENSSL_TYPES_H
57
+
58
+ #ifdef __cplusplus
59
+ extern "C" {
60
+ #endif
61
+
62
+ # include <openssl/e_os2.h>
63
+
64
+ # ifdef NO_ASN1_TYPEDEFS
65
+ # define ASN1_INTEGER ASN1_STRING
66
+ # define ASN1_ENUMERATED ASN1_STRING
67
+ # define ASN1_BIT_STRING ASN1_STRING
68
+ # define ASN1_OCTET_STRING ASN1_STRING
69
+ # define ASN1_PRINTABLESTRING ASN1_STRING
70
+ # define ASN1_T61STRING ASN1_STRING
71
+ # define ASN1_IA5STRING ASN1_STRING
72
+ # define ASN1_UTCTIME ASN1_STRING
73
+ # define ASN1_GENERALIZEDTIME ASN1_STRING
74
+ # define ASN1_TIME ASN1_STRING
75
+ # define ASN1_GENERALSTRING ASN1_STRING
76
+ # define ASN1_UNIVERSALSTRING ASN1_STRING
77
+ # define ASN1_BMPSTRING ASN1_STRING
78
+ # define ASN1_VISIBLESTRING ASN1_STRING
79
+ # define ASN1_UTF8STRING ASN1_STRING
80
+ # define ASN1_BOOLEAN int
81
+ # define ASN1_NULL int
82
+ # else
83
+ typedef struct asn1_string_st ASN1_INTEGER;
84
+ typedef struct asn1_string_st ASN1_ENUMERATED;
85
+ typedef struct asn1_string_st ASN1_BIT_STRING;
86
+ typedef struct asn1_string_st ASN1_OCTET_STRING;
87
+ typedef struct asn1_string_st ASN1_PRINTABLESTRING;
88
+ typedef struct asn1_string_st ASN1_T61STRING;
89
+ typedef struct asn1_string_st ASN1_IA5STRING;
90
+ typedef struct asn1_string_st ASN1_GENERALSTRING;
91
+ typedef struct asn1_string_st ASN1_UNIVERSALSTRING;
92
+ typedef struct asn1_string_st ASN1_BMPSTRING;
93
+ typedef struct asn1_string_st ASN1_UTCTIME;
94
+ typedef struct asn1_string_st ASN1_TIME;
95
+ typedef struct asn1_string_st ASN1_GENERALIZEDTIME;
96
+ typedef struct asn1_string_st ASN1_VISIBLESTRING;
97
+ typedef struct asn1_string_st ASN1_UTF8STRING;
98
+ typedef struct asn1_string_st ASN1_STRING;
99
+ typedef int ASN1_BOOLEAN;
100
+ typedef int ASN1_NULL;
101
+ # endif
102
+
103
+ typedef struct asn1_object_st ASN1_OBJECT;
104
+
105
+ typedef struct ASN1_ITEM_st ASN1_ITEM;
106
+ typedef struct asn1_pctx_st ASN1_PCTX;
107
+
108
+ # ifdef OPENSSL_SYS_WIN32
109
+ # undef X509_NAME
110
+ # undef X509_EXTENSIONS
111
+ # undef X509_CERT_PAIR
112
+ # undef PKCS7_ISSUER_AND_SERIAL
113
+ # undef OCSP_REQUEST
114
+ # undef OCSP_RESPONSE
115
+ # endif
116
+
117
+ # ifdef BIGNUM
118
+ # undef BIGNUM
119
+ # endif
120
+ typedef struct bignum_st BIGNUM;
121
+ typedef struct bignum_ctx BN_CTX;
122
+ typedef struct bn_blinding_st BN_BLINDING;
123
+ typedef struct bn_mont_ctx_st BN_MONT_CTX;
124
+ typedef struct bn_recp_ctx_st BN_RECP_CTX;
125
+ typedef struct bn_gencb_st BN_GENCB;
126
+
127
+ typedef struct buf_mem_st BUF_MEM;
128
+
129
+ typedef struct evp_cipher_st EVP_CIPHER;
130
+ typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
131
+ typedef struct env_md_st EVP_MD;
132
+ typedef struct env_md_ctx_st EVP_MD_CTX;
133
+ typedef struct evp_pkey_st EVP_PKEY;
134
+
135
+ typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD;
136
+
137
+ typedef struct evp_pkey_method_st EVP_PKEY_METHOD;
138
+ typedef struct evp_pkey_ctx_st EVP_PKEY_CTX;
139
+
140
+ typedef struct dh_st DH;
141
+ typedef struct dh_method DH_METHOD;
142
+
143
+ typedef struct dsa_st DSA;
144
+ typedef struct dsa_method DSA_METHOD;
145
+
146
+ typedef struct rsa_st RSA;
147
+ typedef struct rsa_meth_st RSA_METHOD;
148
+
149
+ typedef struct rand_meth_st RAND_METHOD;
150
+
151
+ typedef struct ecdh_method ECDH_METHOD;
152
+ typedef struct ecdsa_method ECDSA_METHOD;
153
+
154
+ typedef struct x509_st X509;
155
+ typedef struct X509_algor_st X509_ALGOR;
156
+ typedef struct X509_crl_st X509_CRL;
157
+ typedef struct x509_crl_method_st X509_CRL_METHOD;
158
+ typedef struct x509_revoked_st X509_REVOKED;
159
+ typedef struct X509_name_st X509_NAME;
160
+ typedef struct X509_pubkey_st X509_PUBKEY;
161
+ typedef struct x509_store_st X509_STORE;
162
+ typedef struct x509_store_ctx_st X509_STORE_CTX;
163
+
164
+ typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO;
165
+
166
+ typedef struct v3_ext_ctx X509V3_CTX;
167
+ typedef struct conf_st CONF;
168
+
169
+ typedef struct store_st STORE;
170
+ typedef struct store_method_st STORE_METHOD;
171
+
172
+ typedef struct ui_st UI;
173
+ typedef struct ui_method_st UI_METHOD;
174
+
175
+ typedef struct st_ERR_FNS ERR_FNS;
176
+
177
+ typedef struct engine_st ENGINE;
178
+ typedef struct ssl_st SSL;
179
+ typedef struct ssl_ctx_st SSL_CTX;
180
+
181
+ typedef struct X509_POLICY_NODE_st X509_POLICY_NODE;
182
+ typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL;
183
+ typedef struct X509_POLICY_TREE_st X509_POLICY_TREE;
184
+ typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE;
185
+
186
+ typedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID;
187
+ typedef struct DIST_POINT_st DIST_POINT;
188
+ typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT;
189
+ typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;
190
+
191
+ /* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */
192
+ # define DECLARE_PKCS12_STACK_OF(type)/* Nothing */
193
+ # define IMPLEMENT_PKCS12_STACK_OF(type)/* Nothing */
194
+
195
+ typedef struct crypto_ex_data_st CRYPTO_EX_DATA;
196
+ /* Callback types for crypto.h */
197
+ typedef int CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
198
+ int idx, long argl, void *argp);
199
+ typedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
200
+ int idx, long argl, void *argp);
201
+ typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from,
202
+ void *from_d, int idx, long argl, void *argp);
203
+
204
+ typedef struct ocsp_req_ctx_st OCSP_REQ_CTX;
205
+ typedef struct ocsp_response_st OCSP_RESPONSE;
206
+ typedef struct ocsp_responder_id_st OCSP_RESPID;
207
+
208
+ #ifdef __cplusplus
209
+ }
210
+ #endif
211
+ #endif /* def HEADER_OPENSSL_TYPES_H */