Back to index

python3.2  3.2.2
infinite_recursion.py
Go to the documentation of this file.
00001 # This file is used to verify that 2to3 falls back to a slower, iterative pattern matching
00002 # scheme in the event that the faster recursive system fails due to infinite recursion.
00003 from ctypes import *
00004 STRING = c_char_p
00005 
00006 
00007 OSUnknownByteOrder = 0
00008 UIT_PROMPT = 1
00009 P_PGID = 2
00010 P_PID = 1
00011 UIT_ERROR = 5
00012 UIT_INFO = 4
00013 UIT_NONE = 0
00014 P_ALL = 0
00015 UIT_VERIFY = 2
00016 OSBigEndian = 2
00017 UIT_BOOLEAN = 3
00018 OSLittleEndian = 1
00019 __darwin_nl_item = c_int
00020 __darwin_wctrans_t = c_int
00021 __darwin_wctype_t = c_ulong
00022 __int8_t = c_byte
00023 __uint8_t = c_ubyte
00024 __int16_t = c_short
00025 __uint16_t = c_ushort
00026 __int32_t = c_int
00027 __uint32_t = c_uint
00028 __int64_t = c_longlong
00029 __uint64_t = c_ulonglong
00030 __darwin_intptr_t = c_long
00031 __darwin_natural_t = c_uint
00032 __darwin_ct_rune_t = c_int
00033 class __mbstate_t(Union):
00034     pass
00035 __mbstate_t._pack_ = 4
00036 __mbstate_t._fields_ = [
00037     ('__mbstate8', c_char * 128),
00038     ('_mbstateL', c_longlong),
00039 ]
00040 assert sizeof(__mbstate_t) == 128, sizeof(__mbstate_t)
00041 assert alignment(__mbstate_t) == 4, alignment(__mbstate_t)
00042 __darwin_mbstate_t = __mbstate_t
00043 __darwin_ptrdiff_t = c_int
00044 __darwin_size_t = c_ulong
00045 __darwin_va_list = STRING
00046 __darwin_wchar_t = c_int
00047 __darwin_rune_t = __darwin_wchar_t
00048 __darwin_wint_t = c_int
00049 __darwin_clock_t = c_ulong
00050 __darwin_socklen_t = __uint32_t
00051 __darwin_ssize_t = c_long
00052 __darwin_time_t = c_long
00053 sig_atomic_t = c_int
00054 class sigcontext(Structure):
00055     pass
00056 sigcontext._fields_ = [
00057     ('sc_onstack', c_int),
00058     ('sc_mask', c_int),
00059     ('sc_eax', c_uint),
00060     ('sc_ebx', c_uint),
00061     ('sc_ecx', c_uint),
00062     ('sc_edx', c_uint),
00063     ('sc_edi', c_uint),
00064     ('sc_esi', c_uint),
00065     ('sc_ebp', c_uint),
00066     ('sc_esp', c_uint),
00067     ('sc_ss', c_uint),
00068     ('sc_eflags', c_uint),
00069     ('sc_eip', c_uint),
00070     ('sc_cs', c_uint),
00071     ('sc_ds', c_uint),
00072     ('sc_es', c_uint),
00073     ('sc_fs', c_uint),
00074     ('sc_gs', c_uint),
00075 ]
00076 assert sizeof(sigcontext) == 72, sizeof(sigcontext)
00077 assert alignment(sigcontext) == 4, alignment(sigcontext)
00078 u_int8_t = c_ubyte
00079 u_int16_t = c_ushort
00080 u_int32_t = c_uint
00081 u_int64_t = c_ulonglong
00082 int32_t = c_int
00083 register_t = int32_t
00084 user_addr_t = u_int64_t
00085 user_size_t = u_int64_t
00086 int64_t = c_longlong
00087 user_ssize_t = int64_t
00088 user_long_t = int64_t
00089 user_ulong_t = u_int64_t
00090 user_time_t = int64_t
00091 syscall_arg_t = u_int64_t
00092 
00093 # values for unnamed enumeration
00094 class aes_key_st(Structure):
00095     pass
00096 aes_key_st._fields_ = [
00097     ('rd_key', c_ulong * 60),
00098     ('rounds', c_int),
00099 ]
00100 assert sizeof(aes_key_st) == 244, sizeof(aes_key_st)
00101 assert alignment(aes_key_st) == 4, alignment(aes_key_st)
00102 AES_KEY = aes_key_st
00103 class asn1_ctx_st(Structure):
00104     pass
00105 asn1_ctx_st._fields_ = [
00106     ('p', POINTER(c_ubyte)),
00107     ('eos', c_int),
00108     ('error', c_int),
00109     ('inf', c_int),
00110     ('tag', c_int),
00111     ('xclass', c_int),
00112     ('slen', c_long),
00113     ('max', POINTER(c_ubyte)),
00114     ('q', POINTER(c_ubyte)),
00115     ('pp', POINTER(POINTER(c_ubyte))),
00116     ('line', c_int),
00117 ]
00118 assert sizeof(asn1_ctx_st) == 44, sizeof(asn1_ctx_st)
00119 assert alignment(asn1_ctx_st) == 4, alignment(asn1_ctx_st)
00120 ASN1_CTX = asn1_ctx_st
00121 class asn1_object_st(Structure):
00122     pass
00123 asn1_object_st._fields_ = [
00124     ('sn', STRING),
00125     ('ln', STRING),
00126     ('nid', c_int),
00127     ('length', c_int),
00128     ('data', POINTER(c_ubyte)),
00129     ('flags', c_int),
00130 ]
00131 assert sizeof(asn1_object_st) == 24, sizeof(asn1_object_st)
00132 assert alignment(asn1_object_st) == 4, alignment(asn1_object_st)
00133 ASN1_OBJECT = asn1_object_st
00134 class asn1_string_st(Structure):
00135     pass
00136 asn1_string_st._fields_ = [
00137     ('length', c_int),
00138     ('type', c_int),
00139     ('data', POINTER(c_ubyte)),
00140     ('flags', c_long),
00141 ]
00142 assert sizeof(asn1_string_st) == 16, sizeof(asn1_string_st)
00143 assert alignment(asn1_string_st) == 4, alignment(asn1_string_st)
00144 ASN1_STRING = asn1_string_st
00145 class ASN1_ENCODING_st(Structure):
00146     pass
00147 ASN1_ENCODING_st._fields_ = [
00148     ('enc', POINTER(c_ubyte)),
00149     ('len', c_long),
00150     ('modified', c_int),
00151 ]
00152 assert sizeof(ASN1_ENCODING_st) == 12, sizeof(ASN1_ENCODING_st)
00153 assert alignment(ASN1_ENCODING_st) == 4, alignment(ASN1_ENCODING_st)
00154 ASN1_ENCODING = ASN1_ENCODING_st
00155 class asn1_string_table_st(Structure):
00156     pass
00157 asn1_string_table_st._fields_ = [
00158     ('nid', c_int),
00159     ('minsize', c_long),
00160     ('maxsize', c_long),
00161     ('mask', c_ulong),
00162     ('flags', c_ulong),
00163 ]
00164 assert sizeof(asn1_string_table_st) == 20, sizeof(asn1_string_table_st)
00165 assert alignment(asn1_string_table_st) == 4, alignment(asn1_string_table_st)
00166 ASN1_STRING_TABLE = asn1_string_table_st
00167 class ASN1_TEMPLATE_st(Structure):
00168     pass
00169 ASN1_TEMPLATE_st._fields_ = [
00170 ]
00171 ASN1_TEMPLATE = ASN1_TEMPLATE_st
00172 class ASN1_ITEM_st(Structure):
00173     pass
00174 ASN1_ITEM = ASN1_ITEM_st
00175 ASN1_ITEM_st._fields_ = [
00176 ]
00177 class ASN1_TLC_st(Structure):
00178     pass
00179 ASN1_TLC = ASN1_TLC_st
00180 ASN1_TLC_st._fields_ = [
00181 ]
00182 class ASN1_VALUE_st(Structure):
00183     pass
00184 ASN1_VALUE_st._fields_ = [
00185 ]
00186 ASN1_VALUE = ASN1_VALUE_st
00187 ASN1_ITEM_EXP = ASN1_ITEM
00188 class asn1_type_st(Structure):
00189     pass
00190 class N12asn1_type_st4DOLLAR_11E(Union):
00191     pass
00192 ASN1_BOOLEAN = c_int
00193 ASN1_INTEGER = asn1_string_st
00194 ASN1_ENUMERATED = asn1_string_st
00195 ASN1_BIT_STRING = asn1_string_st
00196 ASN1_OCTET_STRING = asn1_string_st
00197 ASN1_PRINTABLESTRING = asn1_string_st
00198 ASN1_T61STRING = asn1_string_st
00199 ASN1_IA5STRING = asn1_string_st
00200 ASN1_GENERALSTRING = asn1_string_st
00201 ASN1_BMPSTRING = asn1_string_st
00202 ASN1_UNIVERSALSTRING = asn1_string_st
00203 ASN1_UTCTIME = asn1_string_st
00204 ASN1_GENERALIZEDTIME = asn1_string_st
00205 ASN1_VISIBLESTRING = asn1_string_st
00206 ASN1_UTF8STRING = asn1_string_st
00207 N12asn1_type_st4DOLLAR_11E._fields_ = [
00208     ('ptr', STRING),
00209     ('boolean', ASN1_BOOLEAN),
00210     ('asn1_string', POINTER(ASN1_STRING)),
00211     ('object', POINTER(ASN1_OBJECT)),
00212     ('integer', POINTER(ASN1_INTEGER)),
00213     ('enumerated', POINTER(ASN1_ENUMERATED)),
00214     ('bit_string', POINTER(ASN1_BIT_STRING)),
00215     ('octet_string', POINTER(ASN1_OCTET_STRING)),
00216     ('printablestring', POINTER(ASN1_PRINTABLESTRING)),
00217     ('t61string', POINTER(ASN1_T61STRING)),
00218     ('ia5string', POINTER(ASN1_IA5STRING)),
00219     ('generalstring', POINTER(ASN1_GENERALSTRING)),
00220     ('bmpstring', POINTER(ASN1_BMPSTRING)),
00221     ('universalstring', POINTER(ASN1_UNIVERSALSTRING)),
00222     ('utctime', POINTER(ASN1_UTCTIME)),
00223     ('generalizedtime', POINTER(ASN1_GENERALIZEDTIME)),
00224     ('visiblestring', POINTER(ASN1_VISIBLESTRING)),
00225     ('utf8string', POINTER(ASN1_UTF8STRING)),
00226     ('set', POINTER(ASN1_STRING)),
00227     ('sequence', POINTER(ASN1_STRING)),
00228 ]
00229 assert sizeof(N12asn1_type_st4DOLLAR_11E) == 4, sizeof(N12asn1_type_st4DOLLAR_11E)
00230 assert alignment(N12asn1_type_st4DOLLAR_11E) == 4, alignment(N12asn1_type_st4DOLLAR_11E)
00231 asn1_type_st._fields_ = [
00232     ('type', c_int),
00233     ('value', N12asn1_type_st4DOLLAR_11E),
00234 ]
00235 assert sizeof(asn1_type_st) == 8, sizeof(asn1_type_st)
00236 assert alignment(asn1_type_st) == 4, alignment(asn1_type_st)
00237 ASN1_TYPE = asn1_type_st
00238 class asn1_method_st(Structure):
00239     pass
00240 asn1_method_st._fields_ = [
00241     ('i2d', CFUNCTYPE(c_int)),
00242     ('d2i', CFUNCTYPE(STRING)),
00243     ('create', CFUNCTYPE(STRING)),
00244     ('destroy', CFUNCTYPE(None)),
00245 ]
00246 assert sizeof(asn1_method_st) == 16, sizeof(asn1_method_st)
00247 assert alignment(asn1_method_st) == 4, alignment(asn1_method_st)
00248 ASN1_METHOD = asn1_method_st
00249 class asn1_header_st(Structure):
00250     pass
00251 asn1_header_st._fields_ = [
00252     ('header', POINTER(ASN1_OCTET_STRING)),
00253     ('data', STRING),
00254     ('meth', POINTER(ASN1_METHOD)),
00255 ]
00256 assert sizeof(asn1_header_st) == 12, sizeof(asn1_header_st)
00257 assert alignment(asn1_header_st) == 4, alignment(asn1_header_st)
00258 ASN1_HEADER = asn1_header_st
00259 class BIT_STRING_BITNAME_st(Structure):
00260     pass
00261 BIT_STRING_BITNAME_st._fields_ = [
00262     ('bitnum', c_int),
00263     ('lname', STRING),
00264     ('sname', STRING),
00265 ]
00266 assert sizeof(BIT_STRING_BITNAME_st) == 12, sizeof(BIT_STRING_BITNAME_st)
00267 assert alignment(BIT_STRING_BITNAME_st) == 4, alignment(BIT_STRING_BITNAME_st)
00268 BIT_STRING_BITNAME = BIT_STRING_BITNAME_st
00269 class bio_st(Structure):
00270     pass
00271 BIO = bio_st
00272 bio_info_cb = CFUNCTYPE(None, POINTER(bio_st), c_int, STRING, c_int, c_long, c_long)
00273 class bio_method_st(Structure):
00274     pass
00275 bio_method_st._fields_ = [
00276     ('type', c_int),
00277     ('name', STRING),
00278     ('bwrite', CFUNCTYPE(c_int, POINTER(BIO), STRING, c_int)),
00279     ('bread', CFUNCTYPE(c_int, POINTER(BIO), STRING, c_int)),
00280     ('bputs', CFUNCTYPE(c_int, POINTER(BIO), STRING)),
00281     ('bgets', CFUNCTYPE(c_int, POINTER(BIO), STRING, c_int)),
00282     ('ctrl', CFUNCTYPE(c_long, POINTER(BIO), c_int, c_long, c_void_p)),
00283     ('create', CFUNCTYPE(c_int, POINTER(BIO))),
00284     ('destroy', CFUNCTYPE(c_int, POINTER(BIO))),
00285     ('callback_ctrl', CFUNCTYPE(c_long, POINTER(BIO), c_int, POINTER(bio_info_cb))),
00286 ]
00287 assert sizeof(bio_method_st) == 40, sizeof(bio_method_st)
00288 assert alignment(bio_method_st) == 4, alignment(bio_method_st)
00289 BIO_METHOD = bio_method_st
00290 class crypto_ex_data_st(Structure):
00291     pass
00292 class stack_st(Structure):
00293     pass
00294 STACK = stack_st
00295 crypto_ex_data_st._fields_ = [
00296     ('sk', POINTER(STACK)),
00297     ('dummy', c_int),
00298 ]
00299 assert sizeof(crypto_ex_data_st) == 8, sizeof(crypto_ex_data_st)
00300 assert alignment(crypto_ex_data_st) == 4, alignment(crypto_ex_data_st)
00301 CRYPTO_EX_DATA = crypto_ex_data_st
00302 bio_st._fields_ = [
00303     ('method', POINTER(BIO_METHOD)),
00304     ('callback', CFUNCTYPE(c_long, POINTER(bio_st), c_int, STRING, c_int, c_long, c_long)),
00305     ('cb_arg', STRING),
00306     ('init', c_int),
00307     ('shutdown', c_int),
00308     ('flags', c_int),
00309     ('retry_reason', c_int),
00310     ('num', c_int),
00311     ('ptr', c_void_p),
00312     ('next_bio', POINTER(bio_st)),
00313     ('prev_bio', POINTER(bio_st)),
00314     ('references', c_int),
00315     ('num_read', c_ulong),
00316     ('num_write', c_ulong),
00317     ('ex_data', CRYPTO_EX_DATA),
00318 ]
00319 assert sizeof(bio_st) == 64, sizeof(bio_st)
00320 assert alignment(bio_st) == 4, alignment(bio_st)
00321 class bio_f_buffer_ctx_struct(Structure):
00322     pass
00323 bio_f_buffer_ctx_struct._fields_ = [
00324     ('ibuf_size', c_int),
00325     ('obuf_size', c_int),
00326     ('ibuf', STRING),
00327     ('ibuf_len', c_int),
00328     ('ibuf_off', c_int),
00329     ('obuf', STRING),
00330     ('obuf_len', c_int),
00331     ('obuf_off', c_int),
00332 ]
00333 assert sizeof(bio_f_buffer_ctx_struct) == 32, sizeof(bio_f_buffer_ctx_struct)
00334 assert alignment(bio_f_buffer_ctx_struct) == 4, alignment(bio_f_buffer_ctx_struct)
00335 BIO_F_BUFFER_CTX = bio_f_buffer_ctx_struct
00336 class hostent(Structure):
00337     pass
00338 hostent._fields_ = [
00339 ]
00340 class bf_key_st(Structure):
00341     pass
00342 bf_key_st._fields_ = [
00343     ('P', c_uint * 18),
00344     ('S', c_uint * 1024),
00345 ]
00346 assert sizeof(bf_key_st) == 4168, sizeof(bf_key_st)
00347 assert alignment(bf_key_st) == 4, alignment(bf_key_st)
00348 BF_KEY = bf_key_st
00349 class bignum_st(Structure):
00350     pass
00351 bignum_st._fields_ = [
00352     ('d', POINTER(c_ulong)),
00353     ('top', c_int),
00354     ('dmax', c_int),
00355     ('neg', c_int),
00356     ('flags', c_int),
00357 ]
00358 assert sizeof(bignum_st) == 20, sizeof(bignum_st)
00359 assert alignment(bignum_st) == 4, alignment(bignum_st)
00360 BIGNUM = bignum_st
00361 class bignum_ctx(Structure):
00362     pass
00363 bignum_ctx._fields_ = [
00364 ]
00365 BN_CTX = bignum_ctx
00366 class bn_blinding_st(Structure):
00367     pass
00368 bn_blinding_st._fields_ = [
00369     ('init', c_int),
00370     ('A', POINTER(BIGNUM)),
00371     ('Ai', POINTER(BIGNUM)),
00372     ('mod', POINTER(BIGNUM)),
00373     ('thread_id', c_ulong),
00374 ]
00375 assert sizeof(bn_blinding_st) == 20, sizeof(bn_blinding_st)
00376 assert alignment(bn_blinding_st) == 4, alignment(bn_blinding_st)
00377 BN_BLINDING = bn_blinding_st
00378 class bn_mont_ctx_st(Structure):
00379     pass
00380 bn_mont_ctx_st._fields_ = [
00381     ('ri', c_int),
00382     ('RR', BIGNUM),
00383     ('N', BIGNUM),
00384     ('Ni', BIGNUM),
00385     ('n0', c_ulong),
00386     ('flags', c_int),
00387 ]
00388 assert sizeof(bn_mont_ctx_st) == 72, sizeof(bn_mont_ctx_st)
00389 assert alignment(bn_mont_ctx_st) == 4, alignment(bn_mont_ctx_st)
00390 BN_MONT_CTX = bn_mont_ctx_st
00391 class bn_recp_ctx_st(Structure):
00392     pass
00393 bn_recp_ctx_st._fields_ = [
00394     ('N', BIGNUM),
00395     ('Nr', BIGNUM),
00396     ('num_bits', c_int),
00397     ('shift', c_int),
00398     ('flags', c_int),
00399 ]
00400 assert sizeof(bn_recp_ctx_st) == 52, sizeof(bn_recp_ctx_st)
00401 assert alignment(bn_recp_ctx_st) == 4, alignment(bn_recp_ctx_st)
00402 BN_RECP_CTX = bn_recp_ctx_st
00403 class buf_mem_st(Structure):
00404     pass
00405 buf_mem_st._fields_ = [
00406     ('length', c_int),
00407     ('data', STRING),
00408     ('max', c_int),
00409 ]
00410 assert sizeof(buf_mem_st) == 12, sizeof(buf_mem_st)
00411 assert alignment(buf_mem_st) == 4, alignment(buf_mem_st)
00412 BUF_MEM = buf_mem_st
00413 class cast_key_st(Structure):
00414     pass
00415 cast_key_st._fields_ = [
00416     ('data', c_ulong * 32),
00417     ('short_key', c_int),
00418 ]
00419 assert sizeof(cast_key_st) == 132, sizeof(cast_key_st)
00420 assert alignment(cast_key_st) == 4, alignment(cast_key_st)
00421 CAST_KEY = cast_key_st
00422 class comp_method_st(Structure):
00423     pass
00424 comp_method_st._fields_ = [
00425     ('type', c_int),
00426     ('name', STRING),
00427     ('init', CFUNCTYPE(c_int)),
00428     ('finish', CFUNCTYPE(None)),
00429     ('compress', CFUNCTYPE(c_int)),
00430     ('expand', CFUNCTYPE(c_int)),
00431     ('ctrl', CFUNCTYPE(c_long)),
00432     ('callback_ctrl', CFUNCTYPE(c_long)),
00433 ]
00434 assert sizeof(comp_method_st) == 32, sizeof(comp_method_st)
00435 assert alignment(comp_method_st) == 4, alignment(comp_method_st)
00436 COMP_METHOD = comp_method_st
00437 class comp_ctx_st(Structure):
00438     pass
00439 comp_ctx_st._fields_ = [
00440     ('meth', POINTER(COMP_METHOD)),
00441     ('compress_in', c_ulong),
00442     ('compress_out', c_ulong),
00443     ('expand_in', c_ulong),
00444     ('expand_out', c_ulong),
00445     ('ex_data', CRYPTO_EX_DATA),
00446 ]
00447 assert sizeof(comp_ctx_st) == 28, sizeof(comp_ctx_st)
00448 assert alignment(comp_ctx_st) == 4, alignment(comp_ctx_st)
00449 COMP_CTX = comp_ctx_st
00450 class CRYPTO_dynlock_value(Structure):
00451     pass
00452 CRYPTO_dynlock_value._fields_ = [
00453 ]
00454 class CRYPTO_dynlock(Structure):
00455     pass
00456 CRYPTO_dynlock._fields_ = [
00457     ('references', c_int),
00458     ('data', POINTER(CRYPTO_dynlock_value)),
00459 ]
00460 assert sizeof(CRYPTO_dynlock) == 8, sizeof(CRYPTO_dynlock)
00461 assert alignment(CRYPTO_dynlock) == 4, alignment(CRYPTO_dynlock)
00462 BIO_dummy = bio_st
00463 CRYPTO_EX_new = CFUNCTYPE(c_int, c_void_p, c_void_p, POINTER(CRYPTO_EX_DATA), c_int, c_long, c_void_p)
00464 CRYPTO_EX_free = CFUNCTYPE(None, c_void_p, c_void_p, POINTER(CRYPTO_EX_DATA), c_int, c_long, c_void_p)
00465 CRYPTO_EX_dup = CFUNCTYPE(c_int, POINTER(CRYPTO_EX_DATA), POINTER(CRYPTO_EX_DATA), c_void_p, c_int, c_long, c_void_p)
00466 class crypto_ex_data_func_st(Structure):
00467     pass
00468 crypto_ex_data_func_st._fields_ = [
00469     ('argl', c_long),
00470     ('argp', c_void_p),
00471     ('new_func', POINTER(CRYPTO_EX_new)),
00472     ('free_func', POINTER(CRYPTO_EX_free)),
00473     ('dup_func', POINTER(CRYPTO_EX_dup)),
00474 ]
00475 assert sizeof(crypto_ex_data_func_st) == 20, sizeof(crypto_ex_data_func_st)
00476 assert alignment(crypto_ex_data_func_st) == 4, alignment(crypto_ex_data_func_st)
00477 CRYPTO_EX_DATA_FUNCS = crypto_ex_data_func_st
00478 class st_CRYPTO_EX_DATA_IMPL(Structure):
00479     pass
00480 CRYPTO_EX_DATA_IMPL = st_CRYPTO_EX_DATA_IMPL
00481 st_CRYPTO_EX_DATA_IMPL._fields_ = [
00482 ]
00483 CRYPTO_MEM_LEAK_CB = CFUNCTYPE(c_void_p, c_ulong, STRING, c_int, c_int, c_void_p)
00484 DES_cblock = c_ubyte * 8
00485 const_DES_cblock = c_ubyte * 8
00486 class DES_ks(Structure):
00487     pass
00488 class N6DES_ks3DOLLAR_9E(Union):
00489     pass
00490 N6DES_ks3DOLLAR_9E._fields_ = [
00491     ('cblock', DES_cblock),
00492     ('deslong', c_ulong * 2),
00493 ]
00494 assert sizeof(N6DES_ks3DOLLAR_9E) == 8, sizeof(N6DES_ks3DOLLAR_9E)
00495 assert alignment(N6DES_ks3DOLLAR_9E) == 4, alignment(N6DES_ks3DOLLAR_9E)
00496 DES_ks._fields_ = [
00497     ('ks', N6DES_ks3DOLLAR_9E * 16),
00498 ]
00499 assert sizeof(DES_ks) == 128, sizeof(DES_ks)
00500 assert alignment(DES_ks) == 4, alignment(DES_ks)
00501 DES_key_schedule = DES_ks
00502 _ossl_old_des_cblock = c_ubyte * 8
00503 class _ossl_old_des_ks_struct(Structure):
00504     pass
00505 class N23_ossl_old_des_ks_struct4DOLLAR_10E(Union):
00506     pass
00507 N23_ossl_old_des_ks_struct4DOLLAR_10E._fields_ = [
00508     ('_', _ossl_old_des_cblock),
00509     ('pad', c_ulong * 2),
00510 ]
00511 assert sizeof(N23_ossl_old_des_ks_struct4DOLLAR_10E) == 8, sizeof(N23_ossl_old_des_ks_struct4DOLLAR_10E)
00512 assert alignment(N23_ossl_old_des_ks_struct4DOLLAR_10E) == 4, alignment(N23_ossl_old_des_ks_struct4DOLLAR_10E)
00513 _ossl_old_des_ks_struct._fields_ = [
00514     ('ks', N23_ossl_old_des_ks_struct4DOLLAR_10E),
00515 ]
00516 assert sizeof(_ossl_old_des_ks_struct) == 8, sizeof(_ossl_old_des_ks_struct)
00517 assert alignment(_ossl_old_des_ks_struct) == 4, alignment(_ossl_old_des_ks_struct)
00518 _ossl_old_des_key_schedule = _ossl_old_des_ks_struct * 16
00519 class dh_st(Structure):
00520     pass
00521 DH = dh_st
00522 class dh_method(Structure):
00523     pass
00524 dh_method._fields_ = [
00525     ('name', STRING),
00526     ('generate_key', CFUNCTYPE(c_int, POINTER(DH))),
00527     ('compute_key', CFUNCTYPE(c_int, POINTER(c_ubyte), POINTER(BIGNUM), POINTER(DH))),
00528     ('bn_mod_exp', CFUNCTYPE(c_int, POINTER(DH), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BN_CTX), POINTER(BN_MONT_CTX))),
00529     ('init', CFUNCTYPE(c_int, POINTER(DH))),
00530     ('finish', CFUNCTYPE(c_int, POINTER(DH))),
00531     ('flags', c_int),
00532     ('app_data', STRING),
00533 ]
00534 assert sizeof(dh_method) == 32, sizeof(dh_method)
00535 assert alignment(dh_method) == 4, alignment(dh_method)
00536 DH_METHOD = dh_method
00537 class engine_st(Structure):
00538     pass
00539 ENGINE = engine_st
00540 dh_st._fields_ = [
00541     ('pad', c_int),
00542     ('version', c_int),
00543     ('p', POINTER(BIGNUM)),
00544     ('g', POINTER(BIGNUM)),
00545     ('length', c_long),
00546     ('pub_key', POINTER(BIGNUM)),
00547     ('priv_key', POINTER(BIGNUM)),
00548     ('flags', c_int),
00549     ('method_mont_p', STRING),
00550     ('q', POINTER(BIGNUM)),
00551     ('j', POINTER(BIGNUM)),
00552     ('seed', POINTER(c_ubyte)),
00553     ('seedlen', c_int),
00554     ('counter', POINTER(BIGNUM)),
00555     ('references', c_int),
00556     ('ex_data', CRYPTO_EX_DATA),
00557     ('meth', POINTER(DH_METHOD)),
00558     ('engine', POINTER(ENGINE)),
00559 ]
00560 assert sizeof(dh_st) == 76, sizeof(dh_st)
00561 assert alignment(dh_st) == 4, alignment(dh_st)
00562 class dsa_st(Structure):
00563     pass
00564 DSA = dsa_st
00565 class DSA_SIG_st(Structure):
00566     pass
00567 DSA_SIG_st._fields_ = [
00568     ('r', POINTER(BIGNUM)),
00569     ('s', POINTER(BIGNUM)),
00570 ]
00571 assert sizeof(DSA_SIG_st) == 8, sizeof(DSA_SIG_st)
00572 assert alignment(DSA_SIG_st) == 4, alignment(DSA_SIG_st)
00573 DSA_SIG = DSA_SIG_st
00574 class dsa_method(Structure):
00575     pass
00576 dsa_method._fields_ = [
00577     ('name', STRING),
00578     ('dsa_do_sign', CFUNCTYPE(POINTER(DSA_SIG), POINTER(c_ubyte), c_int, POINTER(DSA))),
00579     ('dsa_sign_setup', CFUNCTYPE(c_int, POINTER(DSA), POINTER(BN_CTX), POINTER(POINTER(BIGNUM)), POINTER(POINTER(BIGNUM)))),
00580     ('dsa_do_verify', CFUNCTYPE(c_int, POINTER(c_ubyte), c_int, POINTER(DSA_SIG), POINTER(DSA))),
00581     ('dsa_mod_exp', CFUNCTYPE(c_int, POINTER(DSA), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BN_CTX), POINTER(BN_MONT_CTX))),
00582     ('bn_mod_exp', CFUNCTYPE(c_int, POINTER(DSA), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BN_CTX), POINTER(BN_MONT_CTX))),
00583     ('init', CFUNCTYPE(c_int, POINTER(DSA))),
00584     ('finish', CFUNCTYPE(c_int, POINTER(DSA))),
00585     ('flags', c_int),
00586     ('app_data', STRING),
00587 ]
00588 assert sizeof(dsa_method) == 40, sizeof(dsa_method)
00589 assert alignment(dsa_method) == 4, alignment(dsa_method)
00590 DSA_METHOD = dsa_method
00591 dsa_st._fields_ = [
00592     ('pad', c_int),
00593     ('version', c_long),
00594     ('write_params', c_int),
00595     ('p', POINTER(BIGNUM)),
00596     ('q', POINTER(BIGNUM)),
00597     ('g', POINTER(BIGNUM)),
00598     ('pub_key', POINTER(BIGNUM)),
00599     ('priv_key', POINTER(BIGNUM)),
00600     ('kinv', POINTER(BIGNUM)),
00601     ('r', POINTER(BIGNUM)),
00602     ('flags', c_int),
00603     ('method_mont_p', STRING),
00604     ('references', c_int),
00605     ('ex_data', CRYPTO_EX_DATA),
00606     ('meth', POINTER(DSA_METHOD)),
00607     ('engine', POINTER(ENGINE)),
00608 ]
00609 assert sizeof(dsa_st) == 68, sizeof(dsa_st)
00610 assert alignment(dsa_st) == 4, alignment(dsa_st)
00611 class evp_pkey_st(Structure):
00612     pass
00613 class N11evp_pkey_st4DOLLAR_12E(Union):
00614     pass
00615 class rsa_st(Structure):
00616     pass
00617 N11evp_pkey_st4DOLLAR_12E._fields_ = [
00618     ('ptr', STRING),
00619     ('rsa', POINTER(rsa_st)),
00620     ('dsa', POINTER(dsa_st)),
00621     ('dh', POINTER(dh_st)),
00622 ]
00623 assert sizeof(N11evp_pkey_st4DOLLAR_12E) == 4, sizeof(N11evp_pkey_st4DOLLAR_12E)
00624 assert alignment(N11evp_pkey_st4DOLLAR_12E) == 4, alignment(N11evp_pkey_st4DOLLAR_12E)
00625 evp_pkey_st._fields_ = [
00626     ('type', c_int),
00627     ('save_type', c_int),
00628     ('references', c_int),
00629     ('pkey', N11evp_pkey_st4DOLLAR_12E),
00630     ('save_parameters', c_int),
00631     ('attributes', POINTER(STACK)),
00632 ]
00633 assert sizeof(evp_pkey_st) == 24, sizeof(evp_pkey_st)
00634 assert alignment(evp_pkey_st) == 4, alignment(evp_pkey_st)
00635 class env_md_st(Structure):
00636     pass
00637 class env_md_ctx_st(Structure):
00638     pass
00639 EVP_MD_CTX = env_md_ctx_st
00640 env_md_st._fields_ = [
00641     ('type', c_int),
00642     ('pkey_type', c_int),
00643     ('md_size', c_int),
00644     ('flags', c_ulong),
00645     ('init', CFUNCTYPE(c_int, POINTER(EVP_MD_CTX))),
00646     ('update', CFUNCTYPE(c_int, POINTER(EVP_MD_CTX), c_void_p, c_ulong)),
00647     ('final', CFUNCTYPE(c_int, POINTER(EVP_MD_CTX), POINTER(c_ubyte))),
00648     ('copy', CFUNCTYPE(c_int, POINTER(EVP_MD_CTX), POINTER(EVP_MD_CTX))),
00649     ('cleanup', CFUNCTYPE(c_int, POINTER(EVP_MD_CTX))),
00650     ('sign', CFUNCTYPE(c_int)),
00651     ('verify', CFUNCTYPE(c_int)),
00652     ('required_pkey_type', c_int * 5),
00653     ('block_size', c_int),
00654     ('ctx_size', c_int),
00655 ]
00656 assert sizeof(env_md_st) == 72, sizeof(env_md_st)
00657 assert alignment(env_md_st) == 4, alignment(env_md_st)
00658 EVP_MD = env_md_st
00659 env_md_ctx_st._fields_ = [
00660     ('digest', POINTER(EVP_MD)),
00661     ('engine', POINTER(ENGINE)),
00662     ('flags', c_ulong),
00663     ('md_data', c_void_p),
00664 ]
00665 assert sizeof(env_md_ctx_st) == 16, sizeof(env_md_ctx_st)
00666 assert alignment(env_md_ctx_st) == 4, alignment(env_md_ctx_st)
00667 class evp_cipher_st(Structure):
00668     pass
00669 class evp_cipher_ctx_st(Structure):
00670     pass
00671 EVP_CIPHER_CTX = evp_cipher_ctx_st
00672 evp_cipher_st._fields_ = [
00673     ('nid', c_int),
00674     ('block_size', c_int),
00675     ('key_len', c_int),
00676     ('iv_len', c_int),
00677     ('flags', c_ulong),
00678     ('init', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), POINTER(c_ubyte), POINTER(c_ubyte), c_int)),
00679     ('do_cipher', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), POINTER(c_ubyte), POINTER(c_ubyte), c_uint)),
00680     ('cleanup', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX))),
00681     ('ctx_size', c_int),
00682     ('set_asn1_parameters', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), POINTER(ASN1_TYPE))),
00683     ('get_asn1_parameters', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), POINTER(ASN1_TYPE))),
00684     ('ctrl', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), c_int, c_int, c_void_p)),
00685     ('app_data', c_void_p),
00686 ]
00687 assert sizeof(evp_cipher_st) == 52, sizeof(evp_cipher_st)
00688 assert alignment(evp_cipher_st) == 4, alignment(evp_cipher_st)
00689 class evp_cipher_info_st(Structure):
00690     pass
00691 EVP_CIPHER = evp_cipher_st
00692 evp_cipher_info_st._fields_ = [
00693     ('cipher', POINTER(EVP_CIPHER)),
00694     ('iv', c_ubyte * 16),
00695 ]
00696 assert sizeof(evp_cipher_info_st) == 20, sizeof(evp_cipher_info_st)
00697 assert alignment(evp_cipher_info_st) == 4, alignment(evp_cipher_info_st)
00698 EVP_CIPHER_INFO = evp_cipher_info_st
00699 evp_cipher_ctx_st._fields_ = [
00700     ('cipher', POINTER(EVP_CIPHER)),
00701     ('engine', POINTER(ENGINE)),
00702     ('encrypt', c_int),
00703     ('buf_len', c_int),
00704     ('oiv', c_ubyte * 16),
00705     ('iv', c_ubyte * 16),
00706     ('buf', c_ubyte * 32),
00707     ('num', c_int),
00708     ('app_data', c_void_p),
00709     ('key_len', c_int),
00710     ('flags', c_ulong),
00711     ('cipher_data', c_void_p),
00712     ('final_used', c_int),
00713     ('block_mask', c_int),
00714     ('final', c_ubyte * 32),
00715 ]
00716 assert sizeof(evp_cipher_ctx_st) == 140, sizeof(evp_cipher_ctx_st)
00717 assert alignment(evp_cipher_ctx_st) == 4, alignment(evp_cipher_ctx_st)
00718 class evp_Encode_Ctx_st(Structure):
00719     pass
00720 evp_Encode_Ctx_st._fields_ = [
00721     ('num', c_int),
00722     ('length', c_int),
00723     ('enc_data', c_ubyte * 80),
00724     ('line_num', c_int),
00725     ('expect_nl', c_int),
00726 ]
00727 assert sizeof(evp_Encode_Ctx_st) == 96, sizeof(evp_Encode_Ctx_st)
00728 assert alignment(evp_Encode_Ctx_st) == 4, alignment(evp_Encode_Ctx_st)
00729 EVP_ENCODE_CTX = evp_Encode_Ctx_st
00730 EVP_PBE_KEYGEN = CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), STRING, c_int, POINTER(ASN1_TYPE), POINTER(EVP_CIPHER), POINTER(EVP_MD), c_int)
00731 class lhash_node_st(Structure):
00732     pass
00733 lhash_node_st._fields_ = [
00734     ('data', c_void_p),
00735     ('next', POINTER(lhash_node_st)),
00736     ('hash', c_ulong),
00737 ]
00738 assert sizeof(lhash_node_st) == 12, sizeof(lhash_node_st)
00739 assert alignment(lhash_node_st) == 4, alignment(lhash_node_st)
00740 LHASH_NODE = lhash_node_st
00741 LHASH_COMP_FN_TYPE = CFUNCTYPE(c_int, c_void_p, c_void_p)
00742 LHASH_HASH_FN_TYPE = CFUNCTYPE(c_ulong, c_void_p)
00743 LHASH_DOALL_FN_TYPE = CFUNCTYPE(None, c_void_p)
00744 LHASH_DOALL_ARG_FN_TYPE = CFUNCTYPE(None, c_void_p, c_void_p)
00745 class lhash_st(Structure):
00746     pass
00747 lhash_st._fields_ = [
00748     ('b', POINTER(POINTER(LHASH_NODE))),
00749     ('comp', LHASH_COMP_FN_TYPE),
00750     ('hash', LHASH_HASH_FN_TYPE),
00751     ('num_nodes', c_uint),
00752     ('num_alloc_nodes', c_uint),
00753     ('p', c_uint),
00754     ('pmax', c_uint),
00755     ('up_load', c_ulong),
00756     ('down_load', c_ulong),
00757     ('num_items', c_ulong),
00758     ('num_expands', c_ulong),
00759     ('num_expand_reallocs', c_ulong),
00760     ('num_contracts', c_ulong),
00761     ('num_contract_reallocs', c_ulong),
00762     ('num_hash_calls', c_ulong),
00763     ('num_comp_calls', c_ulong),
00764     ('num_insert', c_ulong),
00765     ('num_replace', c_ulong),
00766     ('num_delete', c_ulong),
00767     ('num_no_delete', c_ulong),
00768     ('num_retrieve', c_ulong),
00769     ('num_retrieve_miss', c_ulong),
00770     ('num_hash_comps', c_ulong),
00771     ('error', c_int),
00772 ]
00773 assert sizeof(lhash_st) == 96, sizeof(lhash_st)
00774 assert alignment(lhash_st) == 4, alignment(lhash_st)
00775 LHASH = lhash_st
00776 class MD2state_st(Structure):
00777     pass
00778 MD2state_st._fields_ = [
00779     ('num', c_int),
00780     ('data', c_ubyte * 16),
00781     ('cksm', c_uint * 16),
00782     ('state', c_uint * 16),
00783 ]
00784 assert sizeof(MD2state_st) == 148, sizeof(MD2state_st)
00785 assert alignment(MD2state_st) == 4, alignment(MD2state_st)
00786 MD2_CTX = MD2state_st
00787 class MD4state_st(Structure):
00788     pass
00789 MD4state_st._fields_ = [
00790     ('A', c_uint),
00791     ('B', c_uint),
00792     ('C', c_uint),
00793     ('D', c_uint),
00794     ('Nl', c_uint),
00795     ('Nh', c_uint),
00796     ('data', c_uint * 16),
00797     ('num', c_int),
00798 ]
00799 assert sizeof(MD4state_st) == 92, sizeof(MD4state_st)
00800 assert alignment(MD4state_st) == 4, alignment(MD4state_st)
00801 MD4_CTX = MD4state_st
00802 class MD5state_st(Structure):
00803     pass
00804 MD5state_st._fields_ = [
00805     ('A', c_uint),
00806     ('B', c_uint),
00807     ('C', c_uint),
00808     ('D', c_uint),
00809     ('Nl', c_uint),
00810     ('Nh', c_uint),
00811     ('data', c_uint * 16),
00812     ('num', c_int),
00813 ]
00814 assert sizeof(MD5state_st) == 92, sizeof(MD5state_st)
00815 assert alignment(MD5state_st) == 4, alignment(MD5state_st)
00816 MD5_CTX = MD5state_st
00817 class mdc2_ctx_st(Structure):
00818     pass
00819 mdc2_ctx_st._fields_ = [
00820     ('num', c_int),
00821     ('data', c_ubyte * 8),
00822     ('h', DES_cblock),
00823     ('hh', DES_cblock),
00824     ('pad_type', c_int),
00825 ]
00826 assert sizeof(mdc2_ctx_st) == 32, sizeof(mdc2_ctx_st)
00827 assert alignment(mdc2_ctx_st) == 4, alignment(mdc2_ctx_st)
00828 MDC2_CTX = mdc2_ctx_st
00829 class obj_name_st(Structure):
00830     pass
00831 obj_name_st._fields_ = [
00832     ('type', c_int),
00833     ('alias', c_int),
00834     ('name', STRING),
00835     ('data', STRING),
00836 ]
00837 assert sizeof(obj_name_st) == 16, sizeof(obj_name_st)
00838 assert alignment(obj_name_st) == 4, alignment(obj_name_st)
00839 OBJ_NAME = obj_name_st
00840 ASN1_TIME = asn1_string_st
00841 ASN1_NULL = c_int
00842 EVP_PKEY = evp_pkey_st
00843 class x509_st(Structure):
00844     pass
00845 X509 = x509_st
00846 class X509_algor_st(Structure):
00847     pass
00848 X509_ALGOR = X509_algor_st
00849 class X509_crl_st(Structure):
00850     pass
00851 X509_CRL = X509_crl_st
00852 class X509_name_st(Structure):
00853     pass
00854 X509_NAME = X509_name_st
00855 class x509_store_st(Structure):
00856     pass
00857 X509_STORE = x509_store_st
00858 class x509_store_ctx_st(Structure):
00859     pass
00860 X509_STORE_CTX = x509_store_ctx_st
00861 engine_st._fields_ = [
00862 ]
00863 class PEM_Encode_Seal_st(Structure):
00864     pass
00865 PEM_Encode_Seal_st._fields_ = [
00866     ('encode', EVP_ENCODE_CTX),
00867     ('md', EVP_MD_CTX),
00868     ('cipher', EVP_CIPHER_CTX),
00869 ]
00870 assert sizeof(PEM_Encode_Seal_st) == 252, sizeof(PEM_Encode_Seal_st)
00871 assert alignment(PEM_Encode_Seal_st) == 4, alignment(PEM_Encode_Seal_st)
00872 PEM_ENCODE_SEAL_CTX = PEM_Encode_Seal_st
00873 class pem_recip_st(Structure):
00874     pass
00875 pem_recip_st._fields_ = [
00876     ('name', STRING),
00877     ('dn', POINTER(X509_NAME)),
00878     ('cipher', c_int),
00879     ('key_enc', c_int),
00880 ]
00881 assert sizeof(pem_recip_st) == 16, sizeof(pem_recip_st)
00882 assert alignment(pem_recip_st) == 4, alignment(pem_recip_st)
00883 PEM_USER = pem_recip_st
00884 class pem_ctx_st(Structure):
00885     pass
00886 class N10pem_ctx_st4DOLLAR_16E(Structure):
00887     pass
00888 N10pem_ctx_st4DOLLAR_16E._fields_ = [
00889     ('version', c_int),
00890     ('mode', c_int),
00891 ]
00892 assert sizeof(N10pem_ctx_st4DOLLAR_16E) == 8, sizeof(N10pem_ctx_st4DOLLAR_16E)
00893 assert alignment(N10pem_ctx_st4DOLLAR_16E) == 4, alignment(N10pem_ctx_st4DOLLAR_16E)
00894 class N10pem_ctx_st4DOLLAR_17E(Structure):
00895     pass
00896 N10pem_ctx_st4DOLLAR_17E._fields_ = [
00897     ('cipher', c_int),
00898 ]
00899 assert sizeof(N10pem_ctx_st4DOLLAR_17E) == 4, sizeof(N10pem_ctx_st4DOLLAR_17E)
00900 assert alignment(N10pem_ctx_st4DOLLAR_17E) == 4, alignment(N10pem_ctx_st4DOLLAR_17E)
00901 pem_ctx_st._fields_ = [
00902     ('type', c_int),
00903     ('proc_type', N10pem_ctx_st4DOLLAR_16E),
00904     ('domain', STRING),
00905     ('DEK_info', N10pem_ctx_st4DOLLAR_17E),
00906     ('originator', POINTER(PEM_USER)),
00907     ('num_recipient', c_int),
00908     ('recipient', POINTER(POINTER(PEM_USER))),
00909     ('x509_chain', POINTER(STACK)),
00910     ('md', POINTER(EVP_MD)),
00911     ('md_enc', c_int),
00912     ('md_len', c_int),
00913     ('md_data', STRING),
00914     ('dec', POINTER(EVP_CIPHER)),
00915     ('key_len', c_int),
00916     ('key', POINTER(c_ubyte)),
00917     ('data_enc', c_int),
00918     ('data_len', c_int),
00919     ('data', POINTER(c_ubyte)),
00920 ]
00921 assert sizeof(pem_ctx_st) == 76, sizeof(pem_ctx_st)
00922 assert alignment(pem_ctx_st) == 4, alignment(pem_ctx_st)
00923 PEM_CTX = pem_ctx_st
00924 pem_password_cb = CFUNCTYPE(c_int, STRING, c_int, c_int, c_void_p)
00925 class pkcs7_issuer_and_serial_st(Structure):
00926     pass
00927 pkcs7_issuer_and_serial_st._fields_ = [
00928     ('issuer', POINTER(X509_NAME)),
00929     ('serial', POINTER(ASN1_INTEGER)),
00930 ]
00931 assert sizeof(pkcs7_issuer_and_serial_st) == 8, sizeof(pkcs7_issuer_and_serial_st)
00932 assert alignment(pkcs7_issuer_and_serial_st) == 4, alignment(pkcs7_issuer_and_serial_st)
00933 PKCS7_ISSUER_AND_SERIAL = pkcs7_issuer_and_serial_st
00934 class pkcs7_signer_info_st(Structure):
00935     pass
00936 pkcs7_signer_info_st._fields_ = [
00937     ('version', POINTER(ASN1_INTEGER)),
00938     ('issuer_and_serial', POINTER(PKCS7_ISSUER_AND_SERIAL)),
00939     ('digest_alg', POINTER(X509_ALGOR)),
00940     ('auth_attr', POINTER(STACK)),
00941     ('digest_enc_alg', POINTER(X509_ALGOR)),
00942     ('enc_digest', POINTER(ASN1_OCTET_STRING)),
00943     ('unauth_attr', POINTER(STACK)),
00944     ('pkey', POINTER(EVP_PKEY)),
00945 ]
00946 assert sizeof(pkcs7_signer_info_st) == 32, sizeof(pkcs7_signer_info_st)
00947 assert alignment(pkcs7_signer_info_st) == 4, alignment(pkcs7_signer_info_st)
00948 PKCS7_SIGNER_INFO = pkcs7_signer_info_st
00949 class pkcs7_recip_info_st(Structure):
00950     pass
00951 pkcs7_recip_info_st._fields_ = [
00952     ('version', POINTER(ASN1_INTEGER)),
00953     ('issuer_and_serial', POINTER(PKCS7_ISSUER_AND_SERIAL)),
00954     ('key_enc_algor', POINTER(X509_ALGOR)),
00955     ('enc_key', POINTER(ASN1_OCTET_STRING)),
00956     ('cert', POINTER(X509)),
00957 ]
00958 assert sizeof(pkcs7_recip_info_st) == 20, sizeof(pkcs7_recip_info_st)
00959 assert alignment(pkcs7_recip_info_st) == 4, alignment(pkcs7_recip_info_st)
00960 PKCS7_RECIP_INFO = pkcs7_recip_info_st
00961 class pkcs7_signed_st(Structure):
00962     pass
00963 class pkcs7_st(Structure):
00964     pass
00965 pkcs7_signed_st._fields_ = [
00966     ('version', POINTER(ASN1_INTEGER)),
00967     ('md_algs', POINTER(STACK)),
00968     ('cert', POINTER(STACK)),
00969     ('crl', POINTER(STACK)),
00970     ('signer_info', POINTER(STACK)),
00971     ('contents', POINTER(pkcs7_st)),
00972 ]
00973 assert sizeof(pkcs7_signed_st) == 24, sizeof(pkcs7_signed_st)
00974 assert alignment(pkcs7_signed_st) == 4, alignment(pkcs7_signed_st)
00975 PKCS7_SIGNED = pkcs7_signed_st
00976 class pkcs7_enc_content_st(Structure):
00977     pass
00978 pkcs7_enc_content_st._fields_ = [
00979     ('content_type', POINTER(ASN1_OBJECT)),
00980     ('algorithm', POINTER(X509_ALGOR)),
00981     ('enc_data', POINTER(ASN1_OCTET_STRING)),
00982     ('cipher', POINTER(EVP_CIPHER)),
00983 ]
00984 assert sizeof(pkcs7_enc_content_st) == 16, sizeof(pkcs7_enc_content_st)
00985 assert alignment(pkcs7_enc_content_st) == 4, alignment(pkcs7_enc_content_st)
00986 PKCS7_ENC_CONTENT = pkcs7_enc_content_st
00987 class pkcs7_enveloped_st(Structure):
00988     pass
00989 pkcs7_enveloped_st._fields_ = [
00990     ('version', POINTER(ASN1_INTEGER)),
00991     ('recipientinfo', POINTER(STACK)),
00992     ('enc_data', POINTER(PKCS7_ENC_CONTENT)),
00993 ]
00994 assert sizeof(pkcs7_enveloped_st) == 12, sizeof(pkcs7_enveloped_st)
00995 assert alignment(pkcs7_enveloped_st) == 4, alignment(pkcs7_enveloped_st)
00996 PKCS7_ENVELOPE = pkcs7_enveloped_st
00997 class pkcs7_signedandenveloped_st(Structure):
00998     pass
00999 pkcs7_signedandenveloped_st._fields_ = [
01000     ('version', POINTER(ASN1_INTEGER)),
01001     ('md_algs', POINTER(STACK)),
01002     ('cert', POINTER(STACK)),
01003     ('crl', POINTER(STACK)),
01004     ('signer_info', POINTER(STACK)),
01005     ('enc_data', POINTER(PKCS7_ENC_CONTENT)),
01006     ('recipientinfo', POINTER(STACK)),
01007 ]
01008 assert sizeof(pkcs7_signedandenveloped_st) == 28, sizeof(pkcs7_signedandenveloped_st)
01009 assert alignment(pkcs7_signedandenveloped_st) == 4, alignment(pkcs7_signedandenveloped_st)
01010 PKCS7_SIGN_ENVELOPE = pkcs7_signedandenveloped_st
01011 class pkcs7_digest_st(Structure):
01012     pass
01013 pkcs7_digest_st._fields_ = [
01014     ('version', POINTER(ASN1_INTEGER)),
01015     ('md', POINTER(X509_ALGOR)),
01016     ('contents', POINTER(pkcs7_st)),
01017     ('digest', POINTER(ASN1_OCTET_STRING)),
01018 ]
01019 assert sizeof(pkcs7_digest_st) == 16, sizeof(pkcs7_digest_st)
01020 assert alignment(pkcs7_digest_st) == 4, alignment(pkcs7_digest_st)
01021 PKCS7_DIGEST = pkcs7_digest_st
01022 class pkcs7_encrypted_st(Structure):
01023     pass
01024 pkcs7_encrypted_st._fields_ = [
01025     ('version', POINTER(ASN1_INTEGER)),
01026     ('enc_data', POINTER(PKCS7_ENC_CONTENT)),
01027 ]
01028 assert sizeof(pkcs7_encrypted_st) == 8, sizeof(pkcs7_encrypted_st)
01029 assert alignment(pkcs7_encrypted_st) == 4, alignment(pkcs7_encrypted_st)
01030 PKCS7_ENCRYPT = pkcs7_encrypted_st
01031 class N8pkcs7_st4DOLLAR_15E(Union):
01032     pass
01033 N8pkcs7_st4DOLLAR_15E._fields_ = [
01034     ('ptr', STRING),
01035     ('data', POINTER(ASN1_OCTET_STRING)),
01036     ('sign', POINTER(PKCS7_SIGNED)),
01037     ('enveloped', POINTER(PKCS7_ENVELOPE)),
01038     ('signed_and_enveloped', POINTER(PKCS7_SIGN_ENVELOPE)),
01039     ('digest', POINTER(PKCS7_DIGEST)),
01040     ('encrypted', POINTER(PKCS7_ENCRYPT)),
01041     ('other', POINTER(ASN1_TYPE)),
01042 ]
01043 assert sizeof(N8pkcs7_st4DOLLAR_15E) == 4, sizeof(N8pkcs7_st4DOLLAR_15E)
01044 assert alignment(N8pkcs7_st4DOLLAR_15E) == 4, alignment(N8pkcs7_st4DOLLAR_15E)
01045 pkcs7_st._fields_ = [
01046     ('asn1', POINTER(c_ubyte)),
01047     ('length', c_long),
01048     ('state', c_int),
01049     ('detached', c_int),
01050     ('type', POINTER(ASN1_OBJECT)),
01051     ('d', N8pkcs7_st4DOLLAR_15E),
01052 ]
01053 assert sizeof(pkcs7_st) == 24, sizeof(pkcs7_st)
01054 assert alignment(pkcs7_st) == 4, alignment(pkcs7_st)
01055 PKCS7 = pkcs7_st
01056 class rc2_key_st(Structure):
01057     pass
01058 rc2_key_st._fields_ = [
01059     ('data', c_uint * 64),
01060 ]
01061 assert sizeof(rc2_key_st) == 256, sizeof(rc2_key_st)
01062 assert alignment(rc2_key_st) == 4, alignment(rc2_key_st)
01063 RC2_KEY = rc2_key_st
01064 class rc4_key_st(Structure):
01065     pass
01066 rc4_key_st._fields_ = [
01067     ('x', c_ubyte),
01068     ('y', c_ubyte),
01069     ('data', c_ubyte * 256),
01070 ]
01071 assert sizeof(rc4_key_st) == 258, sizeof(rc4_key_st)
01072 assert alignment(rc4_key_st) == 1, alignment(rc4_key_st)
01073 RC4_KEY = rc4_key_st
01074 class rc5_key_st(Structure):
01075     pass
01076 rc5_key_st._fields_ = [
01077     ('rounds', c_int),
01078     ('data', c_ulong * 34),
01079 ]
01080 assert sizeof(rc5_key_st) == 140, sizeof(rc5_key_st)
01081 assert alignment(rc5_key_st) == 4, alignment(rc5_key_st)
01082 RC5_32_KEY = rc5_key_st
01083 class RIPEMD160state_st(Structure):
01084     pass
01085 RIPEMD160state_st._fields_ = [
01086     ('A', c_uint),
01087     ('B', c_uint),
01088     ('C', c_uint),
01089     ('D', c_uint),
01090     ('E', c_uint),
01091     ('Nl', c_uint),
01092     ('Nh', c_uint),
01093     ('data', c_uint * 16),
01094     ('num', c_int),
01095 ]
01096 assert sizeof(RIPEMD160state_st) == 96, sizeof(RIPEMD160state_st)
01097 assert alignment(RIPEMD160state_st) == 4, alignment(RIPEMD160state_st)
01098 RIPEMD160_CTX = RIPEMD160state_st
01099 RSA = rsa_st
01100 class rsa_meth_st(Structure):
01101     pass
01102 rsa_meth_st._fields_ = [
01103     ('name', STRING),
01104     ('rsa_pub_enc', CFUNCTYPE(c_int, c_int, POINTER(c_ubyte), POINTER(c_ubyte), POINTER(RSA), c_int)),
01105     ('rsa_pub_dec', CFUNCTYPE(c_int, c_int, POINTER(c_ubyte), POINTER(c_ubyte), POINTER(RSA), c_int)),
01106     ('rsa_priv_enc', CFUNCTYPE(c_int, c_int, POINTER(c_ubyte), POINTER(c_ubyte), POINTER(RSA), c_int)),
01107     ('rsa_priv_dec', CFUNCTYPE(c_int, c_int, POINTER(c_ubyte), POINTER(c_ubyte), POINTER(RSA), c_int)),
01108     ('rsa_mod_exp', CFUNCTYPE(c_int, POINTER(BIGNUM), POINTER(BIGNUM), POINTER(RSA))),
01109     ('bn_mod_exp', CFUNCTYPE(c_int, POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BIGNUM), POINTER(BN_CTX), POINTER(BN_MONT_CTX))),
01110     ('init', CFUNCTYPE(c_int, POINTER(RSA))),
01111     ('finish', CFUNCTYPE(c_int, POINTER(RSA))),
01112     ('flags', c_int),
01113     ('app_data', STRING),
01114     ('rsa_sign', CFUNCTYPE(c_int, c_int, POINTER(c_ubyte), c_uint, POINTER(c_ubyte), POINTER(c_uint), POINTER(RSA))),
01115     ('rsa_verify', CFUNCTYPE(c_int, c_int, POINTER(c_ubyte), c_uint, POINTER(c_ubyte), c_uint, POINTER(RSA))),
01116 ]
01117 assert sizeof(rsa_meth_st) == 52, sizeof(rsa_meth_st)
01118 assert alignment(rsa_meth_st) == 4, alignment(rsa_meth_st)
01119 RSA_METHOD = rsa_meth_st
01120 rsa_st._fields_ = [
01121     ('pad', c_int),
01122     ('version', c_long),
01123     ('meth', POINTER(RSA_METHOD)),
01124     ('engine', POINTER(ENGINE)),
01125     ('n', POINTER(BIGNUM)),
01126     ('e', POINTER(BIGNUM)),
01127     ('d', POINTER(BIGNUM)),
01128     ('p', POINTER(BIGNUM)),
01129     ('q', POINTER(BIGNUM)),
01130     ('dmp1', POINTER(BIGNUM)),
01131     ('dmq1', POINTER(BIGNUM)),
01132     ('iqmp', POINTER(BIGNUM)),
01133     ('ex_data', CRYPTO_EX_DATA),
01134     ('references', c_int),
01135     ('flags', c_int),
01136     ('_method_mod_n', POINTER(BN_MONT_CTX)),
01137     ('_method_mod_p', POINTER(BN_MONT_CTX)),
01138     ('_method_mod_q', POINTER(BN_MONT_CTX)),
01139     ('bignum_data', STRING),
01140     ('blinding', POINTER(BN_BLINDING)),
01141 ]
01142 assert sizeof(rsa_st) == 84, sizeof(rsa_st)
01143 assert alignment(rsa_st) == 4, alignment(rsa_st)
01144 openssl_fptr = CFUNCTYPE(None)
01145 class SHAstate_st(Structure):
01146     pass
01147 SHAstate_st._fields_ = [
01148     ('h0', c_uint),
01149     ('h1', c_uint),
01150     ('h2', c_uint),
01151     ('h3', c_uint),
01152     ('h4', c_uint),
01153     ('Nl', c_uint),
01154     ('Nh', c_uint),
01155     ('data', c_uint * 16),
01156     ('num', c_int),
01157 ]
01158 assert sizeof(SHAstate_st) == 96, sizeof(SHAstate_st)
01159 assert alignment(SHAstate_st) == 4, alignment(SHAstate_st)
01160 SHA_CTX = SHAstate_st
01161 class ssl_st(Structure):
01162     pass
01163 ssl_crock_st = POINTER(ssl_st)
01164 class ssl_cipher_st(Structure):
01165     pass
01166 ssl_cipher_st._fields_ = [
01167     ('valid', c_int),
01168     ('name', STRING),
01169     ('id', c_ulong),
01170     ('algorithms', c_ulong),
01171     ('algo_strength', c_ulong),
01172     ('algorithm2', c_ulong),
01173     ('strength_bits', c_int),
01174     ('alg_bits', c_int),
01175     ('mask', c_ulong),
01176     ('mask_strength', c_ulong),
01177 ]
01178 assert sizeof(ssl_cipher_st) == 40, sizeof(ssl_cipher_st)
01179 assert alignment(ssl_cipher_st) == 4, alignment(ssl_cipher_st)
01180 SSL_CIPHER = ssl_cipher_st
01181 SSL = ssl_st
01182 class ssl_ctx_st(Structure):
01183     pass
01184 SSL_CTX = ssl_ctx_st
01185 class ssl_method_st(Structure):
01186     pass
01187 class ssl3_enc_method(Structure):
01188     pass
01189 ssl_method_st._fields_ = [
01190     ('version', c_int),
01191     ('ssl_new', CFUNCTYPE(c_int, POINTER(SSL))),
01192     ('ssl_clear', CFUNCTYPE(None, POINTER(SSL))),
01193     ('ssl_free', CFUNCTYPE(None, POINTER(SSL))),
01194     ('ssl_accept', CFUNCTYPE(c_int, POINTER(SSL))),
01195     ('ssl_connect', CFUNCTYPE(c_int, POINTER(SSL))),
01196     ('ssl_read', CFUNCTYPE(c_int, POINTER(SSL), c_void_p, c_int)),
01197     ('ssl_peek', CFUNCTYPE(c_int, POINTER(SSL), c_void_p, c_int)),
01198     ('ssl_write', CFUNCTYPE(c_int, POINTER(SSL), c_void_p, c_int)),
01199     ('ssl_shutdown', CFUNCTYPE(c_int, POINTER(SSL))),
01200     ('ssl_renegotiate', CFUNCTYPE(c_int, POINTER(SSL))),
01201     ('ssl_renegotiate_check', CFUNCTYPE(c_int, POINTER(SSL))),
01202     ('ssl_ctrl', CFUNCTYPE(c_long, POINTER(SSL), c_int, c_long, c_void_p)),
01203     ('ssl_ctx_ctrl', CFUNCTYPE(c_long, POINTER(SSL_CTX), c_int, c_long, c_void_p)),
01204     ('get_cipher_by_char', CFUNCTYPE(POINTER(SSL_CIPHER), POINTER(c_ubyte))),
01205     ('put_cipher_by_char', CFUNCTYPE(c_int, POINTER(SSL_CIPHER), POINTER(c_ubyte))),
01206     ('ssl_pending', CFUNCTYPE(c_int, POINTER(SSL))),
01207     ('num_ciphers', CFUNCTYPE(c_int)),
01208     ('get_cipher', CFUNCTYPE(POINTER(SSL_CIPHER), c_uint)),
01209     ('get_ssl_method', CFUNCTYPE(POINTER(ssl_method_st), c_int)),
01210     ('get_timeout', CFUNCTYPE(c_long)),
01211     ('ssl3_enc', POINTER(ssl3_enc_method)),
01212     ('ssl_version', CFUNCTYPE(c_int)),
01213     ('ssl_callback_ctrl', CFUNCTYPE(c_long, POINTER(SSL), c_int, CFUNCTYPE(None))),
01214     ('ssl_ctx_callback_ctrl', CFUNCTYPE(c_long, POINTER(SSL_CTX), c_int, CFUNCTYPE(None))),
01215 ]
01216 assert sizeof(ssl_method_st) == 100, sizeof(ssl_method_st)
01217 assert alignment(ssl_method_st) == 4, alignment(ssl_method_st)
01218 ssl3_enc_method._fields_ = [
01219 ]
01220 SSL_METHOD = ssl_method_st
01221 class ssl_session_st(Structure):
01222     pass
01223 class sess_cert_st(Structure):
01224     pass
01225 ssl_session_st._fields_ = [
01226     ('ssl_version', c_int),
01227     ('key_arg_length', c_uint),
01228     ('key_arg', c_ubyte * 8),
01229     ('master_key_length', c_int),
01230     ('master_key', c_ubyte * 48),
01231     ('session_id_length', c_uint),
01232     ('session_id', c_ubyte * 32),
01233     ('sid_ctx_length', c_uint),
01234     ('sid_ctx', c_ubyte * 32),
01235     ('not_resumable', c_int),
01236     ('sess_cert', POINTER(sess_cert_st)),
01237     ('peer', POINTER(X509)),
01238     ('verify_result', c_long),
01239     ('references', c_int),
01240     ('timeout', c_long),
01241     ('time', c_long),
01242     ('compress_meth', c_int),
01243     ('cipher', POINTER(SSL_CIPHER)),
01244     ('cipher_id', c_ulong),
01245     ('ciphers', POINTER(STACK)),
01246     ('ex_data', CRYPTO_EX_DATA),
01247     ('prev', POINTER(ssl_session_st)),
01248     ('next', POINTER(ssl_session_st)),
01249 ]
01250 assert sizeof(ssl_session_st) == 200, sizeof(ssl_session_st)
01251 assert alignment(ssl_session_st) == 4, alignment(ssl_session_st)
01252 sess_cert_st._fields_ = [
01253 ]
01254 SSL_SESSION = ssl_session_st
01255 GEN_SESSION_CB = CFUNCTYPE(c_int, POINTER(SSL), POINTER(c_ubyte), POINTER(c_uint))
01256 class ssl_comp_st(Structure):
01257     pass
01258 ssl_comp_st._fields_ = [
01259     ('id', c_int),
01260     ('name', STRING),
01261     ('method', POINTER(COMP_METHOD)),
01262 ]
01263 assert sizeof(ssl_comp_st) == 12, sizeof(ssl_comp_st)
01264 assert alignment(ssl_comp_st) == 4, alignment(ssl_comp_st)
01265 SSL_COMP = ssl_comp_st
01266 class N10ssl_ctx_st4DOLLAR_18E(Structure):
01267     pass
01268 N10ssl_ctx_st4DOLLAR_18E._fields_ = [
01269     ('sess_connect', c_int),
01270     ('sess_connect_renegotiate', c_int),
01271     ('sess_connect_good', c_int),
01272     ('sess_accept', c_int),
01273     ('sess_accept_renegotiate', c_int),
01274     ('sess_accept_good', c_int),
01275     ('sess_miss', c_int),
01276     ('sess_timeout', c_int),
01277     ('sess_cache_full', c_int),
01278     ('sess_hit', c_int),
01279     ('sess_cb_hit', c_int),
01280 ]
01281 assert sizeof(N10ssl_ctx_st4DOLLAR_18E) == 44, sizeof(N10ssl_ctx_st4DOLLAR_18E)
01282 assert alignment(N10ssl_ctx_st4DOLLAR_18E) == 4, alignment(N10ssl_ctx_st4DOLLAR_18E)
01283 class cert_st(Structure):
01284     pass
01285 ssl_ctx_st._fields_ = [
01286     ('method', POINTER(SSL_METHOD)),
01287     ('cipher_list', POINTER(STACK)),
01288     ('cipher_list_by_id', POINTER(STACK)),
01289     ('cert_store', POINTER(x509_store_st)),
01290     ('sessions', POINTER(lhash_st)),
01291     ('session_cache_size', c_ulong),
01292     ('session_cache_head', POINTER(ssl_session_st)),
01293     ('session_cache_tail', POINTER(ssl_session_st)),
01294     ('session_cache_mode', c_int),
01295     ('session_timeout', c_long),
01296     ('new_session_cb', CFUNCTYPE(c_int, POINTER(ssl_st), POINTER(SSL_SESSION))),
01297     ('remove_session_cb', CFUNCTYPE(None, POINTER(ssl_ctx_st), POINTER(SSL_SESSION))),
01298     ('get_session_cb', CFUNCTYPE(POINTER(SSL_SESSION), POINTER(ssl_st), POINTER(c_ubyte), c_int, POINTER(c_int))),
01299     ('stats', N10ssl_ctx_st4DOLLAR_18E),
01300     ('references', c_int),
01301     ('app_verify_callback', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX), c_void_p)),
01302     ('app_verify_arg', c_void_p),
01303     ('default_passwd_callback', POINTER(pem_password_cb)),
01304     ('default_passwd_callback_userdata', c_void_p),
01305     ('client_cert_cb', CFUNCTYPE(c_int, POINTER(SSL), POINTER(POINTER(X509)), POINTER(POINTER(EVP_PKEY)))),
01306     ('ex_data', CRYPTO_EX_DATA),
01307     ('rsa_md5', POINTER(EVP_MD)),
01308     ('md5', POINTER(EVP_MD)),
01309     ('sha1', POINTER(EVP_MD)),
01310     ('extra_certs', POINTER(STACK)),
01311     ('comp_methods', POINTER(STACK)),
01312     ('info_callback', CFUNCTYPE(None, POINTER(SSL), c_int, c_int)),
01313     ('client_CA', POINTER(STACK)),
01314     ('options', c_ulong),
01315     ('mode', c_ulong),
01316     ('max_cert_list', c_long),
01317     ('cert', POINTER(cert_st)),
01318     ('read_ahead', c_int),
01319     ('msg_callback', CFUNCTYPE(None, c_int, c_int, c_int, c_void_p, c_ulong, POINTER(SSL), c_void_p)),
01320     ('msg_callback_arg', c_void_p),
01321     ('verify_mode', c_int),
01322     ('verify_depth', c_int),
01323     ('sid_ctx_length', c_uint),
01324     ('sid_ctx', c_ubyte * 32),
01325     ('default_verify_callback', CFUNCTYPE(c_int, c_int, POINTER(X509_STORE_CTX))),
01326     ('generate_session_id', GEN_SESSION_CB),
01327     ('purpose', c_int),
01328     ('trust', c_int),
01329     ('quiet_shutdown', c_int),
01330 ]
01331 assert sizeof(ssl_ctx_st) == 248, sizeof(ssl_ctx_st)
01332 assert alignment(ssl_ctx_st) == 4, alignment(ssl_ctx_st)
01333 cert_st._fields_ = [
01334 ]
01335 class ssl2_state_st(Structure):
01336     pass
01337 class ssl3_state_st(Structure):
01338     pass
01339 ssl_st._fields_ = [
01340     ('version', c_int),
01341     ('type', c_int),
01342     ('method', POINTER(SSL_METHOD)),
01343     ('rbio', POINTER(BIO)),
01344     ('wbio', POINTER(BIO)),
01345     ('bbio', POINTER(BIO)),
01346     ('rwstate', c_int),
01347     ('in_handshake', c_int),
01348     ('handshake_func', CFUNCTYPE(c_int)),
01349     ('server', c_int),
01350     ('new_session', c_int),
01351     ('quiet_shutdown', c_int),
01352     ('shutdown', c_int),
01353     ('state', c_int),
01354     ('rstate', c_int),
01355     ('init_buf', POINTER(BUF_MEM)),
01356     ('init_msg', c_void_p),
01357     ('init_num', c_int),
01358     ('init_off', c_int),
01359     ('packet', POINTER(c_ubyte)),
01360     ('packet_length', c_uint),
01361     ('s2', POINTER(ssl2_state_st)),
01362     ('s3', POINTER(ssl3_state_st)),
01363     ('read_ahead', c_int),
01364     ('msg_callback', CFUNCTYPE(None, c_int, c_int, c_int, c_void_p, c_ulong, POINTER(SSL), c_void_p)),
01365     ('msg_callback_arg', c_void_p),
01366     ('hit', c_int),
01367     ('purpose', c_int),
01368     ('trust', c_int),
01369     ('cipher_list', POINTER(STACK)),
01370     ('cipher_list_by_id', POINTER(STACK)),
01371     ('enc_read_ctx', POINTER(EVP_CIPHER_CTX)),
01372     ('read_hash', POINTER(EVP_MD)),
01373     ('expand', POINTER(COMP_CTX)),
01374     ('enc_write_ctx', POINTER(EVP_CIPHER_CTX)),
01375     ('write_hash', POINTER(EVP_MD)),
01376     ('compress', POINTER(COMP_CTX)),
01377     ('cert', POINTER(cert_st)),
01378     ('sid_ctx_length', c_uint),
01379     ('sid_ctx', c_ubyte * 32),
01380     ('session', POINTER(SSL_SESSION)),
01381     ('generate_session_id', GEN_SESSION_CB),
01382     ('verify_mode', c_int),
01383     ('verify_depth', c_int),
01384     ('verify_callback', CFUNCTYPE(c_int, c_int, POINTER(X509_STORE_CTX))),
01385     ('info_callback', CFUNCTYPE(None, POINTER(SSL), c_int, c_int)),
01386     ('error', c_int),
01387     ('error_code', c_int),
01388     ('ctx', POINTER(SSL_CTX)),
01389     ('debug', c_int),
01390     ('verify_result', c_long),
01391     ('ex_data', CRYPTO_EX_DATA),
01392     ('client_CA', POINTER(STACK)),
01393     ('references', c_int),
01394     ('options', c_ulong),
01395     ('mode', c_ulong),
01396     ('max_cert_list', c_long),
01397     ('first_packet', c_int),
01398     ('client_version', c_int),
01399 ]
01400 assert sizeof(ssl_st) == 268, sizeof(ssl_st)
01401 assert alignment(ssl_st) == 4, alignment(ssl_st)
01402 class N13ssl2_state_st4DOLLAR_19E(Structure):
01403     pass
01404 N13ssl2_state_st4DOLLAR_19E._fields_ = [
01405     ('conn_id_length', c_uint),
01406     ('cert_type', c_uint),
01407     ('cert_length', c_uint),
01408     ('csl', c_uint),
01409     ('clear', c_uint),
01410     ('enc', c_uint),
01411     ('ccl', c_ubyte * 32),
01412     ('cipher_spec_length', c_uint),
01413     ('session_id_length', c_uint),
01414     ('clen', c_uint),
01415     ('rlen', c_uint),
01416 ]
01417 assert sizeof(N13ssl2_state_st4DOLLAR_19E) == 72, sizeof(N13ssl2_state_st4DOLLAR_19E)
01418 assert alignment(N13ssl2_state_st4DOLLAR_19E) == 4, alignment(N13ssl2_state_st4DOLLAR_19E)
01419 ssl2_state_st._fields_ = [
01420     ('three_byte_header', c_int),
01421     ('clear_text', c_int),
01422     ('escape', c_int),
01423     ('ssl2_rollback', c_int),
01424     ('wnum', c_uint),
01425     ('wpend_tot', c_int),
01426     ('wpend_buf', POINTER(c_ubyte)),
01427     ('wpend_off', c_int),
01428     ('wpend_len', c_int),
01429     ('wpend_ret', c_int),
01430     ('rbuf_left', c_int),
01431     ('rbuf_offs', c_int),
01432     ('rbuf', POINTER(c_ubyte)),
01433     ('wbuf', POINTER(c_ubyte)),
01434     ('write_ptr', POINTER(c_ubyte)),
01435     ('padding', c_uint),
01436     ('rlength', c_uint),
01437     ('ract_data_length', c_int),
01438     ('wlength', c_uint),
01439     ('wact_data_length', c_int),
01440     ('ract_data', POINTER(c_ubyte)),
01441     ('wact_data', POINTER(c_ubyte)),
01442     ('mac_data', POINTER(c_ubyte)),
01443     ('read_key', POINTER(c_ubyte)),
01444     ('write_key', POINTER(c_ubyte)),
01445     ('challenge_length', c_uint),
01446     ('challenge', c_ubyte * 32),
01447     ('conn_id_length', c_uint),
01448     ('conn_id', c_ubyte * 16),
01449     ('key_material_length', c_uint),
01450     ('key_material', c_ubyte * 48),
01451     ('read_sequence', c_ulong),
01452     ('write_sequence', c_ulong),
01453     ('tmp', N13ssl2_state_st4DOLLAR_19E),
01454 ]
01455 assert sizeof(ssl2_state_st) == 288, sizeof(ssl2_state_st)
01456 assert alignment(ssl2_state_st) == 4, alignment(ssl2_state_st)
01457 SSL2_STATE = ssl2_state_st
01458 class ssl3_record_st(Structure):
01459     pass
01460 ssl3_record_st._fields_ = [
01461     ('type', c_int),
01462     ('length', c_uint),
01463     ('off', c_uint),
01464     ('data', POINTER(c_ubyte)),
01465     ('input', POINTER(c_ubyte)),
01466     ('comp', POINTER(c_ubyte)),
01467 ]
01468 assert sizeof(ssl3_record_st) == 24, sizeof(ssl3_record_st)
01469 assert alignment(ssl3_record_st) == 4, alignment(ssl3_record_st)
01470 SSL3_RECORD = ssl3_record_st
01471 class ssl3_buffer_st(Structure):
01472     pass
01473 size_t = __darwin_size_t
01474 ssl3_buffer_st._fields_ = [
01475     ('buf', POINTER(c_ubyte)),
01476     ('len', size_t),
01477     ('offset', c_int),
01478     ('left', c_int),
01479 ]
01480 assert sizeof(ssl3_buffer_st) == 16, sizeof(ssl3_buffer_st)
01481 assert alignment(ssl3_buffer_st) == 4, alignment(ssl3_buffer_st)
01482 SSL3_BUFFER = ssl3_buffer_st
01483 class N13ssl3_state_st4DOLLAR_20E(Structure):
01484     pass
01485 N13ssl3_state_st4DOLLAR_20E._fields_ = [
01486     ('cert_verify_md', c_ubyte * 72),
01487     ('finish_md', c_ubyte * 72),
01488     ('finish_md_len', c_int),
01489     ('peer_finish_md', c_ubyte * 72),
01490     ('peer_finish_md_len', c_int),
01491     ('message_size', c_ulong),
01492     ('message_type', c_int),
01493     ('new_cipher', POINTER(SSL_CIPHER)),
01494     ('dh', POINTER(DH)),
01495     ('next_state', c_int),
01496     ('reuse_message', c_int),
01497     ('cert_req', c_int),
01498     ('ctype_num', c_int),
01499     ('ctype', c_char * 7),
01500     ('ca_names', POINTER(STACK)),
01501     ('use_rsa_tmp', c_int),
01502     ('key_block_length', c_int),
01503     ('key_block', POINTER(c_ubyte)),
01504     ('new_sym_enc', POINTER(EVP_CIPHER)),
01505     ('new_hash', POINTER(EVP_MD)),
01506     ('new_compression', POINTER(SSL_COMP)),
01507     ('cert_request', c_int),
01508 ]
01509 assert sizeof(N13ssl3_state_st4DOLLAR_20E) == 296, sizeof(N13ssl3_state_st4DOLLAR_20E)
01510 assert alignment(N13ssl3_state_st4DOLLAR_20E) == 4, alignment(N13ssl3_state_st4DOLLAR_20E)
01511 ssl3_state_st._fields_ = [
01512     ('flags', c_long),
01513     ('delay_buf_pop_ret', c_int),
01514     ('read_sequence', c_ubyte * 8),
01515     ('read_mac_secret', c_ubyte * 36),
01516     ('write_sequence', c_ubyte * 8),
01517     ('write_mac_secret', c_ubyte * 36),
01518     ('server_random', c_ubyte * 32),
01519     ('client_random', c_ubyte * 32),
01520     ('need_empty_fragments', c_int),
01521     ('empty_fragment_done', c_int),
01522     ('rbuf', SSL3_BUFFER),
01523     ('wbuf', SSL3_BUFFER),
01524     ('rrec', SSL3_RECORD),
01525     ('wrec', SSL3_RECORD),
01526     ('alert_fragment', c_ubyte * 2),
01527     ('alert_fragment_len', c_uint),
01528     ('handshake_fragment', c_ubyte * 4),
01529     ('handshake_fragment_len', c_uint),
01530     ('wnum', c_uint),
01531     ('wpend_tot', c_int),
01532     ('wpend_type', c_int),
01533     ('wpend_ret', c_int),
01534     ('wpend_buf', POINTER(c_ubyte)),
01535     ('finish_dgst1', EVP_MD_CTX),
01536     ('finish_dgst2', EVP_MD_CTX),
01537     ('change_cipher_spec', c_int),
01538     ('warn_alert', c_int),
01539     ('fatal_alert', c_int),
01540     ('alert_dispatch', c_int),
01541     ('send_alert', c_ubyte * 2),
01542     ('renegotiate', c_int),
01543     ('total_renegotiations', c_int),
01544     ('num_renegotiations', c_int),
01545     ('in_read_app_data', c_int),
01546     ('tmp', N13ssl3_state_st4DOLLAR_20E),
01547 ]
01548 assert sizeof(ssl3_state_st) == 648, sizeof(ssl3_state_st)
01549 assert alignment(ssl3_state_st) == 4, alignment(ssl3_state_st)
01550 SSL3_STATE = ssl3_state_st
01551 stack_st._fields_ = [
01552     ('num', c_int),
01553     ('data', POINTER(STRING)),
01554     ('sorted', c_int),
01555     ('num_alloc', c_int),
01556     ('comp', CFUNCTYPE(c_int, POINTER(STRING), POINTER(STRING))),
01557 ]
01558 assert sizeof(stack_st) == 20, sizeof(stack_st)
01559 assert alignment(stack_st) == 4, alignment(stack_st)
01560 class ui_st(Structure):
01561     pass
01562 ui_st._fields_ = [
01563 ]
01564 UI = ui_st
01565 class ui_method_st(Structure):
01566     pass
01567 ui_method_st._fields_ = [
01568 ]
01569 UI_METHOD = ui_method_st
01570 class ui_string_st(Structure):
01571     pass
01572 ui_string_st._fields_ = [
01573 ]
01574 UI_STRING = ui_string_st
01575 
01576 # values for enumeration 'UI_string_types'
01577 UI_string_types = c_int # enum
01578 class X509_objects_st(Structure):
01579     pass
01580 X509_objects_st._fields_ = [
01581     ('nid', c_int),
01582     ('a2i', CFUNCTYPE(c_int)),
01583     ('i2a', CFUNCTYPE(c_int)),
01584 ]
01585 assert sizeof(X509_objects_st) == 12, sizeof(X509_objects_st)
01586 assert alignment(X509_objects_st) == 4, alignment(X509_objects_st)
01587 X509_OBJECTS = X509_objects_st
01588 X509_algor_st._fields_ = [
01589     ('algorithm', POINTER(ASN1_OBJECT)),
01590     ('parameter', POINTER(ASN1_TYPE)),
01591 ]
01592 assert sizeof(X509_algor_st) == 8, sizeof(X509_algor_st)
01593 assert alignment(X509_algor_st) == 4, alignment(X509_algor_st)
01594 class X509_val_st(Structure):
01595     pass
01596 X509_val_st._fields_ = [
01597     ('notBefore', POINTER(ASN1_TIME)),
01598     ('notAfter', POINTER(ASN1_TIME)),
01599 ]
01600 assert sizeof(X509_val_st) == 8, sizeof(X509_val_st)
01601 assert alignment(X509_val_st) == 4, alignment(X509_val_st)
01602 X509_VAL = X509_val_st
01603 class X509_pubkey_st(Structure):
01604     pass
01605 X509_pubkey_st._fields_ = [
01606     ('algor', POINTER(X509_ALGOR)),
01607     ('public_key', POINTER(ASN1_BIT_STRING)),
01608     ('pkey', POINTER(EVP_PKEY)),
01609 ]
01610 assert sizeof(X509_pubkey_st) == 12, sizeof(X509_pubkey_st)
01611 assert alignment(X509_pubkey_st) == 4, alignment(X509_pubkey_st)
01612 X509_PUBKEY = X509_pubkey_st
01613 class X509_sig_st(Structure):
01614     pass
01615 X509_sig_st._fields_ = [
01616     ('algor', POINTER(X509_ALGOR)),
01617     ('digest', POINTER(ASN1_OCTET_STRING)),
01618 ]
01619 assert sizeof(X509_sig_st) == 8, sizeof(X509_sig_st)
01620 assert alignment(X509_sig_st) == 4, alignment(X509_sig_st)
01621 X509_SIG = X509_sig_st
01622 class X509_name_entry_st(Structure):
01623     pass
01624 X509_name_entry_st._fields_ = [
01625     ('object', POINTER(ASN1_OBJECT)),
01626     ('value', POINTER(ASN1_STRING)),
01627     ('set', c_int),
01628     ('size', c_int),
01629 ]
01630 assert sizeof(X509_name_entry_st) == 16, sizeof(X509_name_entry_st)
01631 assert alignment(X509_name_entry_st) == 4, alignment(X509_name_entry_st)
01632 X509_NAME_ENTRY = X509_name_entry_st
01633 X509_name_st._fields_ = [
01634     ('entries', POINTER(STACK)),
01635     ('modified', c_int),
01636     ('bytes', POINTER(BUF_MEM)),
01637     ('hash', c_ulong),
01638 ]
01639 assert sizeof(X509_name_st) == 16, sizeof(X509_name_st)
01640 assert alignment(X509_name_st) == 4, alignment(X509_name_st)
01641 class X509_extension_st(Structure):
01642     pass
01643 X509_extension_st._fields_ = [
01644     ('object', POINTER(ASN1_OBJECT)),
01645     ('critical', ASN1_BOOLEAN),
01646     ('value', POINTER(ASN1_OCTET_STRING)),
01647 ]
01648 assert sizeof(X509_extension_st) == 12, sizeof(X509_extension_st)
01649 assert alignment(X509_extension_st) == 4, alignment(X509_extension_st)
01650 X509_EXTENSION = X509_extension_st
01651 class x509_attributes_st(Structure):
01652     pass
01653 class N18x509_attributes_st4DOLLAR_13E(Union):
01654     pass
01655 N18x509_attributes_st4DOLLAR_13E._fields_ = [
01656     ('ptr', STRING),
01657     ('set', POINTER(STACK)),
01658     ('single', POINTER(ASN1_TYPE)),
01659 ]
01660 assert sizeof(N18x509_attributes_st4DOLLAR_13E) == 4, sizeof(N18x509_attributes_st4DOLLAR_13E)
01661 assert alignment(N18x509_attributes_st4DOLLAR_13E) == 4, alignment(N18x509_attributes_st4DOLLAR_13E)
01662 x509_attributes_st._fields_ = [
01663     ('object', POINTER(ASN1_OBJECT)),
01664     ('single', c_int),
01665     ('value', N18x509_attributes_st4DOLLAR_13E),
01666 ]
01667 assert sizeof(x509_attributes_st) == 12, sizeof(x509_attributes_st)
01668 assert alignment(x509_attributes_st) == 4, alignment(x509_attributes_st)
01669 X509_ATTRIBUTE = x509_attributes_st
01670 class X509_req_info_st(Structure):
01671     pass
01672 X509_req_info_st._fields_ = [
01673     ('enc', ASN1_ENCODING),
01674     ('version', POINTER(ASN1_INTEGER)),
01675     ('subject', POINTER(X509_NAME)),
01676     ('pubkey', POINTER(X509_PUBKEY)),
01677     ('attributes', POINTER(STACK)),
01678 ]
01679 assert sizeof(X509_req_info_st) == 28, sizeof(X509_req_info_st)
01680 assert alignment(X509_req_info_st) == 4, alignment(X509_req_info_st)
01681 X509_REQ_INFO = X509_req_info_st
01682 class X509_req_st(Structure):
01683     pass
01684 X509_req_st._fields_ = [
01685     ('req_info', POINTER(X509_REQ_INFO)),
01686     ('sig_alg', POINTER(X509_ALGOR)),
01687     ('signature', POINTER(ASN1_BIT_STRING)),
01688     ('references', c_int),
01689 ]
01690 assert sizeof(X509_req_st) == 16, sizeof(X509_req_st)
01691 assert alignment(X509_req_st) == 4, alignment(X509_req_st)
01692 X509_REQ = X509_req_st
01693 class x509_cinf_st(Structure):
01694     pass
01695 x509_cinf_st._fields_ = [
01696     ('version', POINTER(ASN1_INTEGER)),
01697     ('serialNumber', POINTER(ASN1_INTEGER)),
01698     ('signature', POINTER(X509_ALGOR)),
01699     ('issuer', POINTER(X509_NAME)),
01700     ('validity', POINTER(X509_VAL)),
01701     ('subject', POINTER(X509_NAME)),
01702     ('key', POINTER(X509_PUBKEY)),
01703     ('issuerUID', POINTER(ASN1_BIT_STRING)),
01704     ('subjectUID', POINTER(ASN1_BIT_STRING)),
01705     ('extensions', POINTER(STACK)),
01706 ]
01707 assert sizeof(x509_cinf_st) == 40, sizeof(x509_cinf_st)
01708 assert alignment(x509_cinf_st) == 4, alignment(x509_cinf_st)
01709 X509_CINF = x509_cinf_st
01710 class x509_cert_aux_st(Structure):
01711     pass
01712 x509_cert_aux_st._fields_ = [
01713     ('trust', POINTER(STACK)),
01714     ('reject', POINTER(STACK)),
01715     ('alias', POINTER(ASN1_UTF8STRING)),
01716     ('keyid', POINTER(ASN1_OCTET_STRING)),
01717     ('other', POINTER(STACK)),
01718 ]
01719 assert sizeof(x509_cert_aux_st) == 20, sizeof(x509_cert_aux_st)
01720 assert alignment(x509_cert_aux_st) == 4, alignment(x509_cert_aux_st)
01721 X509_CERT_AUX = x509_cert_aux_st
01722 class AUTHORITY_KEYID_st(Structure):
01723     pass
01724 x509_st._fields_ = [
01725     ('cert_info', POINTER(X509_CINF)),
01726     ('sig_alg', POINTER(X509_ALGOR)),
01727     ('signature', POINTER(ASN1_BIT_STRING)),
01728     ('valid', c_int),
01729     ('references', c_int),
01730     ('name', STRING),
01731     ('ex_data', CRYPTO_EX_DATA),
01732     ('ex_pathlen', c_long),
01733     ('ex_flags', c_ulong),
01734     ('ex_kusage', c_ulong),
01735     ('ex_xkusage', c_ulong),
01736     ('ex_nscert', c_ulong),
01737     ('skid', POINTER(ASN1_OCTET_STRING)),
01738     ('akid', POINTER(AUTHORITY_KEYID_st)),
01739     ('sha1_hash', c_ubyte * 20),
01740     ('aux', POINTER(X509_CERT_AUX)),
01741 ]
01742 assert sizeof(x509_st) == 84, sizeof(x509_st)
01743 assert alignment(x509_st) == 4, alignment(x509_st)
01744 AUTHORITY_KEYID_st._fields_ = [
01745 ]
01746 class x509_trust_st(Structure):
01747     pass
01748 x509_trust_st._fields_ = [
01749     ('trust', c_int),
01750     ('flags', c_int),
01751     ('check_trust', CFUNCTYPE(c_int, POINTER(x509_trust_st), POINTER(X509), c_int)),
01752     ('name', STRING),
01753     ('arg1', c_int),
01754     ('arg2', c_void_p),
01755 ]
01756 assert sizeof(x509_trust_st) == 24, sizeof(x509_trust_st)
01757 assert alignment(x509_trust_st) == 4, alignment(x509_trust_st)
01758 X509_TRUST = x509_trust_st
01759 class X509_revoked_st(Structure):
01760     pass
01761 X509_revoked_st._fields_ = [
01762     ('serialNumber', POINTER(ASN1_INTEGER)),
01763     ('revocationDate', POINTER(ASN1_TIME)),
01764     ('extensions', POINTER(STACK)),
01765     ('sequence', c_int),
01766 ]
01767 assert sizeof(X509_revoked_st) == 16, sizeof(X509_revoked_st)
01768 assert alignment(X509_revoked_st) == 4, alignment(X509_revoked_st)
01769 X509_REVOKED = X509_revoked_st
01770 class X509_crl_info_st(Structure):
01771     pass
01772 X509_crl_info_st._fields_ = [
01773     ('version', POINTER(ASN1_INTEGER)),
01774     ('sig_alg', POINTER(X509_ALGOR)),
01775     ('issuer', POINTER(X509_NAME)),
01776     ('lastUpdate', POINTER(ASN1_TIME)),
01777     ('nextUpdate', POINTER(ASN1_TIME)),
01778     ('revoked', POINTER(STACK)),
01779     ('extensions', POINTER(STACK)),
01780     ('enc', ASN1_ENCODING),
01781 ]
01782 assert sizeof(X509_crl_info_st) == 40, sizeof(X509_crl_info_st)
01783 assert alignment(X509_crl_info_st) == 4, alignment(X509_crl_info_st)
01784 X509_CRL_INFO = X509_crl_info_st
01785 X509_crl_st._fields_ = [
01786     ('crl', POINTER(X509_CRL_INFO)),
01787     ('sig_alg', POINTER(X509_ALGOR)),
01788     ('signature', POINTER(ASN1_BIT_STRING)),
01789     ('references', c_int),
01790 ]
01791 assert sizeof(X509_crl_st) == 16, sizeof(X509_crl_st)
01792 assert alignment(X509_crl_st) == 4, alignment(X509_crl_st)
01793 class private_key_st(Structure):
01794     pass
01795 private_key_st._fields_ = [
01796     ('version', c_int),
01797     ('enc_algor', POINTER(X509_ALGOR)),
01798     ('enc_pkey', POINTER(ASN1_OCTET_STRING)),
01799     ('dec_pkey', POINTER(EVP_PKEY)),
01800     ('key_length', c_int),
01801     ('key_data', STRING),
01802     ('key_free', c_int),
01803     ('cipher', EVP_CIPHER_INFO),
01804     ('references', c_int),
01805 ]
01806 assert sizeof(private_key_st) == 52, sizeof(private_key_st)
01807 assert alignment(private_key_st) == 4, alignment(private_key_st)
01808 X509_PKEY = private_key_st
01809 class X509_info_st(Structure):
01810     pass
01811 X509_info_st._fields_ = [
01812     ('x509', POINTER(X509)),
01813     ('crl', POINTER(X509_CRL)),
01814     ('x_pkey', POINTER(X509_PKEY)),
01815     ('enc_cipher', EVP_CIPHER_INFO),
01816     ('enc_len', c_int),
01817     ('enc_data', STRING),
01818     ('references', c_int),
01819 ]
01820 assert sizeof(X509_info_st) == 44, sizeof(X509_info_st)
01821 assert alignment(X509_info_st) == 4, alignment(X509_info_st)
01822 X509_INFO = X509_info_st
01823 class Netscape_spkac_st(Structure):
01824     pass
01825 Netscape_spkac_st._fields_ = [
01826     ('pubkey', POINTER(X509_PUBKEY)),
01827     ('challenge', POINTER(ASN1_IA5STRING)),
01828 ]
01829 assert sizeof(Netscape_spkac_st) == 8, sizeof(Netscape_spkac_st)
01830 assert alignment(Netscape_spkac_st) == 4, alignment(Netscape_spkac_st)
01831 NETSCAPE_SPKAC = Netscape_spkac_st
01832 class Netscape_spki_st(Structure):
01833     pass
01834 Netscape_spki_st._fields_ = [
01835     ('spkac', POINTER(NETSCAPE_SPKAC)),
01836     ('sig_algor', POINTER(X509_ALGOR)),
01837     ('signature', POINTER(ASN1_BIT_STRING)),
01838 ]
01839 assert sizeof(Netscape_spki_st) == 12, sizeof(Netscape_spki_st)
01840 assert alignment(Netscape_spki_st) == 4, alignment(Netscape_spki_st)
01841 NETSCAPE_SPKI = Netscape_spki_st
01842 class Netscape_certificate_sequence(Structure):
01843     pass
01844 Netscape_certificate_sequence._fields_ = [
01845     ('type', POINTER(ASN1_OBJECT)),
01846     ('certs', POINTER(STACK)),
01847 ]
01848 assert sizeof(Netscape_certificate_sequence) == 8, sizeof(Netscape_certificate_sequence)
01849 assert alignment(Netscape_certificate_sequence) == 4, alignment(Netscape_certificate_sequence)
01850 NETSCAPE_CERT_SEQUENCE = Netscape_certificate_sequence
01851 class PBEPARAM_st(Structure):
01852     pass
01853 PBEPARAM_st._fields_ = [
01854     ('salt', POINTER(ASN1_OCTET_STRING)),
01855     ('iter', POINTER(ASN1_INTEGER)),
01856 ]
01857 assert sizeof(PBEPARAM_st) == 8, sizeof(PBEPARAM_st)
01858 assert alignment(PBEPARAM_st) == 4, alignment(PBEPARAM_st)
01859 PBEPARAM = PBEPARAM_st
01860 class PBE2PARAM_st(Structure):
01861     pass
01862 PBE2PARAM_st._fields_ = [
01863     ('keyfunc', POINTER(X509_ALGOR)),
01864     ('encryption', POINTER(X509_ALGOR)),
01865 ]
01866 assert sizeof(PBE2PARAM_st) == 8, sizeof(PBE2PARAM_st)
01867 assert alignment(PBE2PARAM_st) == 4, alignment(PBE2PARAM_st)
01868 PBE2PARAM = PBE2PARAM_st
01869 class PBKDF2PARAM_st(Structure):
01870     pass
01871 PBKDF2PARAM_st._fields_ = [
01872     ('salt', POINTER(ASN1_TYPE)),
01873     ('iter', POINTER(ASN1_INTEGER)),
01874     ('keylength', POINTER(ASN1_INTEGER)),
01875     ('prf', POINTER(X509_ALGOR)),
01876 ]
01877 assert sizeof(PBKDF2PARAM_st) == 16, sizeof(PBKDF2PARAM_st)
01878 assert alignment(PBKDF2PARAM_st) == 4, alignment(PBKDF2PARAM_st)
01879 PBKDF2PARAM = PBKDF2PARAM_st
01880 class pkcs8_priv_key_info_st(Structure):
01881     pass
01882 pkcs8_priv_key_info_st._fields_ = [
01883     ('broken', c_int),
01884     ('version', POINTER(ASN1_INTEGER)),
01885     ('pkeyalg', POINTER(X509_ALGOR)),
01886     ('pkey', POINTER(ASN1_TYPE)),
01887     ('attributes', POINTER(STACK)),
01888 ]
01889 assert sizeof(pkcs8_priv_key_info_st) == 20, sizeof(pkcs8_priv_key_info_st)
01890 assert alignment(pkcs8_priv_key_info_st) == 4, alignment(pkcs8_priv_key_info_st)
01891 PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st
01892 class x509_hash_dir_st(Structure):
01893     pass
01894 x509_hash_dir_st._fields_ = [
01895     ('num_dirs', c_int),
01896     ('dirs', POINTER(STRING)),
01897     ('dirs_type', POINTER(c_int)),
01898     ('num_dirs_alloced', c_int),
01899 ]
01900 assert sizeof(x509_hash_dir_st) == 16, sizeof(x509_hash_dir_st)
01901 assert alignment(x509_hash_dir_st) == 4, alignment(x509_hash_dir_st)
01902 X509_HASH_DIR_CTX = x509_hash_dir_st
01903 class x509_file_st(Structure):
01904     pass
01905 x509_file_st._fields_ = [
01906     ('num_paths', c_int),
01907     ('num_alloced', c_int),
01908     ('paths', POINTER(STRING)),
01909     ('path_type', POINTER(c_int)),
01910 ]
01911 assert sizeof(x509_file_st) == 16, sizeof(x509_file_st)
01912 assert alignment(x509_file_st) == 4, alignment(x509_file_st)
01913 X509_CERT_FILE_CTX = x509_file_st
01914 class x509_object_st(Structure):
01915     pass
01916 class N14x509_object_st4DOLLAR_14E(Union):
01917     pass
01918 N14x509_object_st4DOLLAR_14E._fields_ = [
01919     ('ptr', STRING),
01920     ('x509', POINTER(X509)),
01921     ('crl', POINTER(X509_CRL)),
01922     ('pkey', POINTER(EVP_PKEY)),
01923 ]
01924 assert sizeof(N14x509_object_st4DOLLAR_14E) == 4, sizeof(N14x509_object_st4DOLLAR_14E)
01925 assert alignment(N14x509_object_st4DOLLAR_14E) == 4, alignment(N14x509_object_st4DOLLAR_14E)
01926 x509_object_st._fields_ = [
01927     ('type', c_int),
01928     ('data', N14x509_object_st4DOLLAR_14E),
01929 ]
01930 assert sizeof(x509_object_st) == 8, sizeof(x509_object_st)
01931 assert alignment(x509_object_st) == 4, alignment(x509_object_st)
01932 X509_OBJECT = x509_object_st
01933 class x509_lookup_st(Structure):
01934     pass
01935 X509_LOOKUP = x509_lookup_st
01936 class x509_lookup_method_st(Structure):
01937     pass
01938 x509_lookup_method_st._fields_ = [
01939     ('name', STRING),
01940     ('new_item', CFUNCTYPE(c_int, POINTER(X509_LOOKUP))),
01941     ('free', CFUNCTYPE(None, POINTER(X509_LOOKUP))),
01942     ('init', CFUNCTYPE(c_int, POINTER(X509_LOOKUP))),
01943     ('shutdown', CFUNCTYPE(c_int, POINTER(X509_LOOKUP))),
01944     ('ctrl', CFUNCTYPE(c_int, POINTER(X509_LOOKUP), c_int, STRING, c_long, POINTER(STRING))),
01945     ('get_by_subject', CFUNCTYPE(c_int, POINTER(X509_LOOKUP), c_int, POINTER(X509_NAME), POINTER(X509_OBJECT))),
01946     ('get_by_issuer_serial', CFUNCTYPE(c_int, POINTER(X509_LOOKUP), c_int, POINTER(X509_NAME), POINTER(ASN1_INTEGER), POINTER(X509_OBJECT))),
01947     ('get_by_fingerprint', CFUNCTYPE(c_int, POINTER(X509_LOOKUP), c_int, POINTER(c_ubyte), c_int, POINTER(X509_OBJECT))),
01948     ('get_by_alias', CFUNCTYPE(c_int, POINTER(X509_LOOKUP), c_int, STRING, c_int, POINTER(X509_OBJECT))),
01949 ]
01950 assert sizeof(x509_lookup_method_st) == 40, sizeof(x509_lookup_method_st)
01951 assert alignment(x509_lookup_method_st) == 4, alignment(x509_lookup_method_st)
01952 X509_LOOKUP_METHOD = x509_lookup_method_st
01953 x509_store_st._fields_ = [
01954     ('cache', c_int),
01955     ('objs', POINTER(STACK)),
01956     ('get_cert_methods', POINTER(STACK)),
01957     ('flags', c_ulong),
01958     ('purpose', c_int),
01959     ('trust', c_int),
01960     ('verify', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX))),
01961     ('verify_cb', CFUNCTYPE(c_int, c_int, POINTER(X509_STORE_CTX))),
01962     ('get_issuer', CFUNCTYPE(c_int, POINTER(POINTER(X509)), POINTER(X509_STORE_CTX), POINTER(X509))),
01963     ('check_issued', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX), POINTER(X509), POINTER(X509))),
01964     ('check_revocation', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX))),
01965     ('get_crl', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX), POINTER(POINTER(X509_CRL)), POINTER(X509))),
01966     ('check_crl', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX), POINTER(X509_CRL))),
01967     ('cert_crl', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX), POINTER(X509_CRL), POINTER(X509))),
01968     ('cleanup', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX))),
01969     ('ex_data', CRYPTO_EX_DATA),
01970     ('references', c_int),
01971     ('depth', c_int),
01972 ]
01973 assert sizeof(x509_store_st) == 76, sizeof(x509_store_st)
01974 assert alignment(x509_store_st) == 4, alignment(x509_store_st)
01975 x509_lookup_st._fields_ = [
01976     ('init', c_int),
01977     ('skip', c_int),
01978     ('method', POINTER(X509_LOOKUP_METHOD)),
01979     ('method_data', STRING),
01980     ('store_ctx', POINTER(X509_STORE)),
01981 ]
01982 assert sizeof(x509_lookup_st) == 20, sizeof(x509_lookup_st)
01983 assert alignment(x509_lookup_st) == 4, alignment(x509_lookup_st)
01984 time_t = __darwin_time_t
01985 x509_store_ctx_st._fields_ = [
01986     ('ctx', POINTER(X509_STORE)),
01987     ('current_method', c_int),
01988     ('cert', POINTER(X509)),
01989     ('untrusted', POINTER(STACK)),
01990     ('purpose', c_int),
01991     ('trust', c_int),
01992     ('check_time', time_t),
01993     ('flags', c_ulong),
01994     ('other_ctx', c_void_p),
01995     ('verify', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX))),
01996     ('verify_cb', CFUNCTYPE(c_int, c_int, POINTER(X509_STORE_CTX))),
01997     ('get_issuer', CFUNCTYPE(c_int, POINTER(POINTER(X509)), POINTER(X509_STORE_CTX), POINTER(X509))),
01998     ('check_issued', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX), POINTER(X509), POINTER(X509))),
01999     ('check_revocation', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX))),
02000     ('get_crl', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX), POINTER(POINTER(X509_CRL)), POINTER(X509))),
02001     ('check_crl', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX), POINTER(X509_CRL))),
02002     ('cert_crl', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX), POINTER(X509_CRL), POINTER(X509))),
02003     ('cleanup', CFUNCTYPE(c_int, POINTER(X509_STORE_CTX))),
02004     ('depth', c_int),
02005     ('valid', c_int),
02006     ('last_untrusted', c_int),
02007     ('chain', POINTER(STACK)),
02008     ('error_depth', c_int),
02009     ('error', c_int),
02010     ('current_cert', POINTER(X509)),
02011     ('current_issuer', POINTER(X509)),
02012     ('current_crl', POINTER(X509_CRL)),
02013     ('ex_data', CRYPTO_EX_DATA),
02014 ]
02015 assert sizeof(x509_store_ctx_st) == 116, sizeof(x509_store_ctx_st)
02016 assert alignment(x509_store_ctx_st) == 4, alignment(x509_store_ctx_st)
02017 va_list = __darwin_va_list
02018 __darwin_off_t = __int64_t
02019 fpos_t = __darwin_off_t
02020 class __sbuf(Structure):
02021     pass
02022 __sbuf._fields_ = [
02023     ('_base', POINTER(c_ubyte)),
02024     ('_size', c_int),
02025 ]
02026 assert sizeof(__sbuf) == 8, sizeof(__sbuf)
02027 assert alignment(__sbuf) == 4, alignment(__sbuf)
02028 class __sFILEX(Structure):
02029     pass
02030 __sFILEX._fields_ = [
02031 ]
02032 class __sFILE(Structure):
02033     pass
02034 __sFILE._pack_ = 4
02035 __sFILE._fields_ = [
02036     ('_p', POINTER(c_ubyte)),
02037     ('_r', c_int),
02038     ('_w', c_int),
02039     ('_flags', c_short),
02040     ('_file', c_short),
02041     ('_bf', __sbuf),
02042     ('_lbfsize', c_int),
02043     ('_cookie', c_void_p),
02044     ('_close', CFUNCTYPE(c_int, c_void_p)),
02045     ('_read', CFUNCTYPE(c_int, c_void_p, STRING, c_int)),
02046     ('_seek', CFUNCTYPE(fpos_t, c_void_p, c_longlong, c_int)),
02047     ('_write', CFUNCTYPE(c_int, c_void_p, STRING, c_int)),
02048     ('_ub', __sbuf),
02049     ('_extra', POINTER(__sFILEX)),
02050     ('_ur', c_int),
02051     ('_ubuf', c_ubyte * 3),
02052     ('_nbuf', c_ubyte * 1),
02053     ('_lb', __sbuf),
02054     ('_blksize', c_int),
02055     ('_offset', fpos_t),
02056 ]
02057 assert sizeof(__sFILE) == 88, sizeof(__sFILE)
02058 assert alignment(__sFILE) == 4, alignment(__sFILE)
02059 FILE = __sFILE
02060 ct_rune_t = __darwin_ct_rune_t
02061 rune_t = __darwin_rune_t
02062 class div_t(Structure):
02063     pass
02064 div_t._fields_ = [
02065     ('quot', c_int),
02066     ('rem', c_int),
02067 ]
02068 assert sizeof(div_t) == 8, sizeof(div_t)
02069 assert alignment(div_t) == 4, alignment(div_t)
02070 class ldiv_t(Structure):
02071     pass
02072 ldiv_t._fields_ = [
02073     ('quot', c_long),
02074     ('rem', c_long),
02075 ]
02076 assert sizeof(ldiv_t) == 8, sizeof(ldiv_t)
02077 assert alignment(ldiv_t) == 4, alignment(ldiv_t)
02078 class lldiv_t(Structure):
02079     pass
02080 lldiv_t._pack_ = 4
02081 lldiv_t._fields_ = [
02082     ('quot', c_longlong),
02083     ('rem', c_longlong),
02084 ]
02085 assert sizeof(lldiv_t) == 16, sizeof(lldiv_t)
02086 assert alignment(lldiv_t) == 4, alignment(lldiv_t)
02087 __darwin_dev_t = __int32_t
02088 dev_t = __darwin_dev_t
02089 __darwin_mode_t = __uint16_t
02090 mode_t = __darwin_mode_t
02091 class mcontext(Structure):
02092     pass
02093 mcontext._fields_ = [
02094 ]
02095 class mcontext64(Structure):
02096     pass
02097 mcontext64._fields_ = [
02098 ]
02099 class __darwin_pthread_handler_rec(Structure):
02100     pass
02101 __darwin_pthread_handler_rec._fields_ = [
02102     ('__routine', CFUNCTYPE(None, c_void_p)),
02103     ('__arg', c_void_p),
02104     ('__next', POINTER(__darwin_pthread_handler_rec)),
02105 ]
02106 assert sizeof(__darwin_pthread_handler_rec) == 12, sizeof(__darwin_pthread_handler_rec)
02107 assert alignment(__darwin_pthread_handler_rec) == 4, alignment(__darwin_pthread_handler_rec)
02108 class _opaque_pthread_attr_t(Structure):
02109     pass
02110 _opaque_pthread_attr_t._fields_ = [
02111     ('__sig', c_long),
02112     ('__opaque', c_char * 36),
02113 ]
02114 assert sizeof(_opaque_pthread_attr_t) == 40, sizeof(_opaque_pthread_attr_t)
02115 assert alignment(_opaque_pthread_attr_t) == 4, alignment(_opaque_pthread_attr_t)
02116 class _opaque_pthread_cond_t(Structure):
02117     pass
02118 _opaque_pthread_cond_t._fields_ = [
02119     ('__sig', c_long),
02120     ('__opaque', c_char * 24),
02121 ]
02122 assert sizeof(_opaque_pthread_cond_t) == 28, sizeof(_opaque_pthread_cond_t)
02123 assert alignment(_opaque_pthread_cond_t) == 4, alignment(_opaque_pthread_cond_t)
02124 class _opaque_pthread_condattr_t(Structure):
02125     pass
02126 _opaque_pthread_condattr_t._fields_ = [
02127     ('__sig', c_long),
02128     ('__opaque', c_char * 4),
02129 ]
02130 assert sizeof(_opaque_pthread_condattr_t) == 8, sizeof(_opaque_pthread_condattr_t)
02131 assert alignment(_opaque_pthread_condattr_t) == 4, alignment(_opaque_pthread_condattr_t)
02132 class _opaque_pthread_mutex_t(Structure):
02133     pass
02134 _opaque_pthread_mutex_t._fields_ = [
02135     ('__sig', c_long),
02136     ('__opaque', c_char * 40),
02137 ]
02138 assert sizeof(_opaque_pthread_mutex_t) == 44, sizeof(_opaque_pthread_mutex_t)
02139 assert alignment(_opaque_pthread_mutex_t) == 4, alignment(_opaque_pthread_mutex_t)
02140 class _opaque_pthread_mutexattr_t(Structure):
02141     pass
02142 _opaque_pthread_mutexattr_t._fields_ = [
02143     ('__sig', c_long),
02144     ('__opaque', c_char * 8),
02145 ]
02146 assert sizeof(_opaque_pthread_mutexattr_t) == 12, sizeof(_opaque_pthread_mutexattr_t)
02147 assert alignment(_opaque_pthread_mutexattr_t) == 4, alignment(_opaque_pthread_mutexattr_t)
02148 class _opaque_pthread_once_t(Structure):
02149     pass
02150 _opaque_pthread_once_t._fields_ = [
02151     ('__sig', c_long),
02152     ('__opaque', c_char * 4),
02153 ]
02154 assert sizeof(_opaque_pthread_once_t) == 8, sizeof(_opaque_pthread_once_t)
02155 assert alignment(_opaque_pthread_once_t) == 4, alignment(_opaque_pthread_once_t)
02156 class _opaque_pthread_rwlock_t(Structure):
02157     pass
02158 _opaque_pthread_rwlock_t._fields_ = [
02159     ('__sig', c_long),
02160     ('__opaque', c_char * 124),
02161 ]
02162 assert sizeof(_opaque_pthread_rwlock_t) == 128, sizeof(_opaque_pthread_rwlock_t)
02163 assert alignment(_opaque_pthread_rwlock_t) == 4, alignment(_opaque_pthread_rwlock_t)
02164 class _opaque_pthread_rwlockattr_t(Structure):
02165     pass
02166 _opaque_pthread_rwlockattr_t._fields_ = [
02167     ('__sig', c_long),
02168     ('__opaque', c_char * 12),
02169 ]
02170 assert sizeof(_opaque_pthread_rwlockattr_t) == 16, sizeof(_opaque_pthread_rwlockattr_t)
02171 assert alignment(_opaque_pthread_rwlockattr_t) == 4, alignment(_opaque_pthread_rwlockattr_t)
02172 class _opaque_pthread_t(Structure):
02173     pass
02174 _opaque_pthread_t._fields_ = [
02175     ('__sig', c_long),
02176     ('__cleanup_stack', POINTER(__darwin_pthread_handler_rec)),
02177     ('__opaque', c_char * 596),
02178 ]
02179 assert sizeof(_opaque_pthread_t) == 604, sizeof(_opaque_pthread_t)
02180 assert alignment(_opaque_pthread_t) == 4, alignment(_opaque_pthread_t)
02181 __darwin_blkcnt_t = __int64_t
02182 __darwin_blksize_t = __int32_t
02183 __darwin_fsblkcnt_t = c_uint
02184 __darwin_fsfilcnt_t = c_uint
02185 __darwin_gid_t = __uint32_t
02186 __darwin_id_t = __uint32_t
02187 __darwin_ino_t = __uint32_t
02188 __darwin_mach_port_name_t = __darwin_natural_t
02189 __darwin_mach_port_t = __darwin_mach_port_name_t
02190 __darwin_mcontext_t = POINTER(mcontext)
02191 __darwin_mcontext64_t = POINTER(mcontext64)
02192 __darwin_pid_t = __int32_t
02193 __darwin_pthread_attr_t = _opaque_pthread_attr_t
02194 __darwin_pthread_cond_t = _opaque_pthread_cond_t
02195 __darwin_pthread_condattr_t = _opaque_pthread_condattr_t
02196 __darwin_pthread_key_t = c_ulong
02197 __darwin_pthread_mutex_t = _opaque_pthread_mutex_t
02198 __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t
02199 __darwin_pthread_once_t = _opaque_pthread_once_t
02200 __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t
02201 __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t
02202 __darwin_pthread_t = POINTER(_opaque_pthread_t)
02203 __darwin_sigset_t = __uint32_t
02204 __darwin_suseconds_t = __int32_t
02205 __darwin_uid_t = __uint32_t
02206 __darwin_useconds_t = __uint32_t
02207 __darwin_uuid_t = c_ubyte * 16
02208 class sigaltstack(Structure):
02209     pass
02210 sigaltstack._fields_ = [
02211     ('ss_sp', c_void_p),
02212     ('ss_size', __darwin_size_t),
02213     ('ss_flags', c_int),
02214 ]
02215 assert sizeof(sigaltstack) == 12, sizeof(sigaltstack)
02216 assert alignment(sigaltstack) == 4, alignment(sigaltstack)
02217 __darwin_stack_t = sigaltstack
02218 class ucontext(Structure):
02219     pass
02220 ucontext._fields_ = [
02221     ('uc_onstack', c_int),
02222     ('uc_sigmask', __darwin_sigset_t),
02223     ('uc_stack', __darwin_stack_t),
02224     ('uc_link', POINTER(ucontext)),
02225     ('uc_mcsize', __darwin_size_t),
02226     ('uc_mcontext', __darwin_mcontext_t),
02227 ]
02228 assert sizeof(ucontext) == 32, sizeof(ucontext)
02229 assert alignment(ucontext) == 4, alignment(ucontext)
02230 __darwin_ucontext_t = ucontext
02231 class ucontext64(Structure):
02232     pass
02233 ucontext64._fields_ = [
02234     ('uc_onstack', c_int),
02235     ('uc_sigmask', __darwin_sigset_t),
02236     ('uc_stack', __darwin_stack_t),
02237     ('uc_link', POINTER(ucontext64)),
02238     ('uc_mcsize', __darwin_size_t),
02239     ('uc_mcontext64', __darwin_mcontext64_t),
02240 ]
02241 assert sizeof(ucontext64) == 32, sizeof(ucontext64)
02242 assert alignment(ucontext64) == 4, alignment(ucontext64)
02243 __darwin_ucontext64_t = ucontext64
02244 class timeval(Structure):
02245     pass
02246 timeval._fields_ = [
02247     ('tv_sec', __darwin_time_t),
02248     ('tv_usec', __darwin_suseconds_t),
02249 ]
02250 assert sizeof(timeval) == 8, sizeof(timeval)
02251 assert alignment(timeval) == 4, alignment(timeval)
02252 rlim_t = __int64_t
02253 class rusage(Structure):
02254     pass
02255 rusage._fields_ = [
02256     ('ru_utime', timeval),
02257     ('ru_stime', timeval),
02258     ('ru_maxrss', c_long),
02259     ('ru_ixrss', c_long),
02260     ('ru_idrss', c_long),
02261     ('ru_isrss', c_long),
02262     ('ru_minflt', c_long),
02263     ('ru_majflt', c_long),
02264     ('ru_nswap', c_long),
02265     ('ru_inblock', c_long),
02266     ('ru_oublock', c_long),
02267     ('ru_msgsnd', c_long),
02268     ('ru_msgrcv', c_long),
02269     ('ru_nsignals', c_long),
02270     ('ru_nvcsw', c_long),
02271     ('ru_nivcsw', c_long),
02272 ]
02273 assert sizeof(rusage) == 72, sizeof(rusage)
02274 assert alignment(rusage) == 4, alignment(rusage)
02275 class rlimit(Structure):
02276     pass
02277 rlimit._pack_ = 4
02278 rlimit._fields_ = [
02279     ('rlim_cur', rlim_t),
02280     ('rlim_max', rlim_t),
02281 ]
02282 assert sizeof(rlimit) == 16, sizeof(rlimit)
02283 assert alignment(rlimit) == 4, alignment(rlimit)
02284 mcontext_t = __darwin_mcontext_t
02285 mcontext64_t = __darwin_mcontext64_t
02286 pthread_attr_t = __darwin_pthread_attr_t
02287 sigset_t = __darwin_sigset_t
02288 ucontext_t = __darwin_ucontext_t
02289 ucontext64_t = __darwin_ucontext64_t
02290 uid_t = __darwin_uid_t
02291 class sigval(Union):
02292     pass
02293 sigval._fields_ = [
02294     ('sival_int', c_int),
02295     ('sival_ptr', c_void_p),
02296 ]
02297 assert sizeof(sigval) == 4, sizeof(sigval)
02298 assert alignment(sigval) == 4, alignment(sigval)
02299 class sigevent(Structure):
02300     pass
02301 sigevent._fields_ = [
02302     ('sigev_notify', c_int),
02303     ('sigev_signo', c_int),
02304     ('sigev_value', sigval),
02305     ('sigev_notify_function', CFUNCTYPE(None, sigval)),
02306     ('sigev_notify_attributes', POINTER(pthread_attr_t)),
02307 ]
02308 assert sizeof(sigevent) == 20, sizeof(sigevent)
02309 assert alignment(sigevent) == 4, alignment(sigevent)
02310 class __siginfo(Structure):
02311     pass
02312 pid_t = __darwin_pid_t
02313 __siginfo._fields_ = [
02314     ('si_signo', c_int),
02315     ('si_errno', c_int),
02316     ('si_code', c_int),
02317     ('si_pid', pid_t),
02318     ('si_uid', uid_t),
02319     ('si_status', c_int),
02320     ('si_addr', c_void_p),
02321     ('si_value', sigval),
02322     ('si_band', c_long),
02323     ('pad', c_ulong * 7),
02324 ]
02325 assert sizeof(__siginfo) == 64, sizeof(__siginfo)
02326 assert alignment(__siginfo) == 4, alignment(__siginfo)
02327 siginfo_t = __siginfo
02328 class __sigaction_u(Union):
02329     pass
02330 __sigaction_u._fields_ = [
02331     ('__sa_handler', CFUNCTYPE(None, c_int)),
02332     ('__sa_sigaction', CFUNCTYPE(None, c_int, POINTER(__siginfo), c_void_p)),
02333 ]
02334 assert sizeof(__sigaction_u) == 4, sizeof(__sigaction_u)
02335 assert alignment(__sigaction_u) == 4, alignment(__sigaction_u)
02336 class __sigaction(Structure):
02337     pass
02338 __sigaction._fields_ = [
02339     ('__sigaction_u', __sigaction_u),
02340     ('sa_tramp', CFUNCTYPE(None, c_void_p, c_int, c_int, POINTER(siginfo_t), c_void_p)),
02341     ('sa_mask', sigset_t),
02342     ('sa_flags', c_int),
02343 ]
02344 assert sizeof(__sigaction) == 16, sizeof(__sigaction)
02345 assert alignment(__sigaction) == 4, alignment(__sigaction)
02346 class sigaction(Structure):
02347     pass
02348 sigaction._fields_ = [
02349     ('__sigaction_u', __sigaction_u),
02350     ('sa_mask', sigset_t),
02351     ('sa_flags', c_int),
02352 ]
02353 assert sizeof(sigaction) == 12, sizeof(sigaction)
02354 assert alignment(sigaction) == 4, alignment(sigaction)
02355 sig_t = CFUNCTYPE(None, c_int)
02356 stack_t = __darwin_stack_t
02357 class sigvec(Structure):
02358     pass
02359 sigvec._fields_ = [
02360     ('sv_handler', CFUNCTYPE(None, c_int)),
02361     ('sv_mask', c_int),
02362     ('sv_flags', c_int),
02363 ]
02364 assert sizeof(sigvec) == 12, sizeof(sigvec)
02365 assert alignment(sigvec) == 4, alignment(sigvec)
02366 class sigstack(Structure):
02367     pass
02368 sigstack._fields_ = [
02369     ('ss_sp', STRING),
02370     ('ss_onstack', c_int),
02371 ]
02372 assert sizeof(sigstack) == 8, sizeof(sigstack)
02373 assert alignment(sigstack) == 4, alignment(sigstack)
02374 u_char = c_ubyte
02375 u_short = c_ushort
02376 u_int = c_uint
02377 u_long = c_ulong
02378 ushort = c_ushort
02379 uint = c_uint
02380 u_quad_t = u_int64_t
02381 quad_t = int64_t
02382 qaddr_t = POINTER(quad_t)
02383 caddr_t = STRING
02384 daddr_t = int32_t
02385 fixpt_t = u_int32_t
02386 blkcnt_t = __darwin_blkcnt_t
02387 blksize_t = __darwin_blksize_t
02388 gid_t = __darwin_gid_t
02389 in_addr_t = __uint32_t
02390 in_port_t = __uint16_t
02391 ino_t = __darwin_ino_t
02392 key_t = __int32_t
02393 nlink_t = __uint16_t
02394 off_t = __darwin_off_t
02395 segsz_t = int32_t
02396 swblk_t = int32_t
02397 clock_t = __darwin_clock_t
02398 ssize_t = __darwin_ssize_t
02399 useconds_t = __darwin_useconds_t
02400 suseconds_t = __darwin_suseconds_t
02401 fd_mask = __int32_t
02402 class fd_set(Structure):
02403     pass
02404 fd_set._fields_ = [
02405     ('fds_bits', __int32_t * 32),
02406 ]
02407 assert sizeof(fd_set) == 128, sizeof(fd_set)
02408 assert alignment(fd_set) == 4, alignment(fd_set)
02409 pthread_cond_t = __darwin_pthread_cond_t
02410 pthread_condattr_t = __darwin_pthread_condattr_t
02411 pthread_mutex_t = __darwin_pthread_mutex_t
02412 pthread_mutexattr_t = __darwin_pthread_mutexattr_t
02413 pthread_once_t = __darwin_pthread_once_t
02414 pthread_rwlock_t = __darwin_pthread_rwlock_t
02415 pthread_rwlockattr_t = __darwin_pthread_rwlockattr_t
02416 pthread_t = __darwin_pthread_t
02417 pthread_key_t = __darwin_pthread_key_t
02418 fsblkcnt_t = __darwin_fsblkcnt_t
02419 fsfilcnt_t = __darwin_fsfilcnt_t
02420 
02421 # values for enumeration 'idtype_t'
02422 idtype_t = c_int # enum
02423 id_t = __darwin_id_t
02424 class wait(Union):
02425     pass
02426 class N4wait3DOLLAR_3E(Structure):
02427     pass
02428 N4wait3DOLLAR_3E._fields_ = [
02429     ('w_Termsig', c_uint, 7),
02430     ('w_Coredump', c_uint, 1),
02431     ('w_Retcode', c_uint, 8),
02432     ('w_Filler', c_uint, 16),
02433 ]
02434 assert sizeof(N4wait3DOLLAR_3E) == 4, sizeof(N4wait3DOLLAR_3E)
02435 assert alignment(N4wait3DOLLAR_3E) == 4, alignment(N4wait3DOLLAR_3E)
02436 class N4wait3DOLLAR_4E(Structure):
02437     pass
02438 N4wait3DOLLAR_4E._fields_ = [
02439     ('w_Stopval', c_uint, 8),
02440     ('w_Stopsig', c_uint, 8),
02441     ('w_Filler', c_uint, 16),
02442 ]
02443 assert sizeof(N4wait3DOLLAR_4E) == 4, sizeof(N4wait3DOLLAR_4E)
02444 assert alignment(N4wait3DOLLAR_4E) == 4, alignment(N4wait3DOLLAR_4E)
02445 wait._fields_ = [
02446     ('w_status', c_int),
02447     ('w_T', N4wait3DOLLAR_3E),
02448     ('w_S', N4wait3DOLLAR_4E),
02449 ]
02450 assert sizeof(wait) == 4, sizeof(wait)
02451 assert alignment(wait) == 4, alignment(wait)
02452 class timespec(Structure):
02453     pass
02454 timespec._fields_ = [
02455     ('tv_sec', time_t),
02456     ('tv_nsec', c_long),
02457 ]
02458 assert sizeof(timespec) == 8, sizeof(timespec)
02459 assert alignment(timespec) == 4, alignment(timespec)
02460 class tm(Structure):
02461     pass
02462 tm._fields_ = [
02463     ('tm_sec', c_int),
02464     ('tm_min', c_int),
02465     ('tm_hour', c_int),
02466     ('tm_mday', c_int),
02467     ('tm_mon', c_int),
02468     ('tm_year', c_int),
02469     ('tm_wday', c_int),
02470     ('tm_yday', c_int),
02471     ('tm_isdst', c_int),
02472     ('tm_gmtoff', c_long),
02473     ('tm_zone', STRING),
02474 ]
02475 assert sizeof(tm) == 44, sizeof(tm)
02476 assert alignment(tm) == 4, alignment(tm)
02477 __gnuc_va_list = STRING
02478 ptrdiff_t = c_int
02479 int8_t = c_byte
02480 int16_t = c_short
02481 uint8_t = c_ubyte
02482 uint16_t = c_ushort
02483 uint32_t = c_uint
02484 uint64_t = c_ulonglong
02485 int_least8_t = int8_t
02486 int_least16_t = int16_t
02487 int_least32_t = int32_t
02488 int_least64_t = int64_t
02489 uint_least8_t = uint8_t
02490 uint_least16_t = uint16_t
02491 uint_least32_t = uint32_t
02492 uint_least64_t = uint64_t
02493 int_fast8_t = int8_t
02494 int_fast16_t = int16_t
02495 int_fast32_t = int32_t
02496 int_fast64_t = int64_t
02497 uint_fast8_t = uint8_t
02498 uint_fast16_t = uint16_t
02499 uint_fast32_t = uint32_t
02500 uint_fast64_t = uint64_t
02501 intptr_t = c_long
02502 uintptr_t = c_ulong
02503 intmax_t = c_longlong
02504 uintmax_t = c_ulonglong
02505 __all__ = ['ENGINE', 'pkcs7_enc_content_st', '__int16_t',
02506            'X509_REVOKED', 'SSL_CTX', 'UIT_BOOLEAN',
02507            '__darwin_time_t', 'ucontext64_t', 'int_fast32_t',
02508            'pem_ctx_st', 'uint8_t', 'fpos_t', 'X509', 'COMP_CTX',
02509            'tm', 'N10pem_ctx_st4DOLLAR_17E', 'swblk_t',
02510            'ASN1_TEMPLATE', '__darwin_pthread_t', 'fixpt_t',
02511            'BIO_METHOD', 'ASN1_PRINTABLESTRING', 'EVP_ENCODE_CTX',
02512            'dh_method', 'bio_f_buffer_ctx_struct', 'in_port_t',
02513            'X509_SIG', '__darwin_ssize_t', '__darwin_sigset_t',
02514            'wait', 'uint_fast16_t', 'N12asn1_type_st4DOLLAR_11E',
02515            'uint_least8_t', 'pthread_rwlock_t', 'ASN1_IA5STRING',
02516            'fsfilcnt_t', 'ucontext', '__uint64_t', 'timespec',
02517            'x509_cinf_st', 'COMP_METHOD', 'MD5_CTX', 'buf_mem_st',
02518            'ASN1_ENCODING_st', 'PBEPARAM', 'X509_NAME_ENTRY',
02519            '__darwin_va_list', 'ucontext_t', 'lhash_st',
02520            'N4wait3DOLLAR_4E', '__darwin_uuid_t',
02521            '_ossl_old_des_ks_struct', 'id_t', 'ASN1_BIT_STRING',
02522            'va_list', '__darwin_wchar_t', 'pthread_key_t',
02523            'pkcs7_signer_info_st', 'ASN1_METHOD', 'DSA_SIG', 'DSA',
02524            'UIT_NONE', 'pthread_t', '__darwin_useconds_t',
02525            'uint_fast8_t', 'UI_STRING', 'DES_cblock',
02526            '__darwin_mcontext64_t', 'rlim_t', 'PEM_Encode_Seal_st',
02527            'SHAstate_st', 'u_quad_t', 'openssl_fptr',
02528            '_opaque_pthread_rwlockattr_t',
02529            'N18x509_attributes_st4DOLLAR_13E',
02530            '__darwin_pthread_rwlock_t', 'daddr_t', 'ui_string_st',
02531            'x509_file_st', 'X509_req_info_st', 'int_least64_t',
02532            'evp_Encode_Ctx_st', 'X509_OBJECTS', 'CRYPTO_EX_DATA',
02533            '__int8_t', 'AUTHORITY_KEYID_st', '_opaque_pthread_attr_t',
02534            'sigstack', 'EVP_CIPHER_CTX', 'X509_extension_st', 'pid_t',
02535            'RSA_METHOD', 'PEM_USER', 'pem_recip_st', 'env_md_ctx_st',
02536            'rc5_key_st', 'ui_st', 'X509_PUBKEY', 'u_int8_t',
02537            'ASN1_ITEM_st', 'pkcs7_recip_info_st', 'ssl2_state_st',
02538            'off_t', 'N10ssl_ctx_st4DOLLAR_18E', 'crypto_ex_data_st',
02539            'ui_method_st', '__darwin_pthread_rwlockattr_t',
02540            'CRYPTO_EX_dup', '__darwin_ino_t', '__sFILE',
02541            'OSUnknownByteOrder', 'BN_MONT_CTX', 'ASN1_NULL', 'time_t',
02542            'CRYPTO_EX_new', 'asn1_type_st', 'CRYPTO_EX_DATA_FUNCS',
02543            'user_time_t', 'BIGNUM', 'pthread_rwlockattr_t',
02544            'ASN1_VALUE_st', 'DH_METHOD', '__darwin_off_t',
02545            '_opaque_pthread_t', 'bn_blinding_st', 'RSA', 'ssize_t',
02546            'mcontext64_t', 'user_long_t', 'fsblkcnt_t', 'cert_st',
02547            '__darwin_pthread_condattr_t', 'X509_PKEY',
02548            '__darwin_id_t', '__darwin_nl_item', 'SSL2_STATE', 'FILE',
02549            'pthread_mutexattr_t', 'size_t',
02550            '_ossl_old_des_key_schedule', 'pkcs7_issuer_and_serial_st',
02551            'sigval', 'CRYPTO_MEM_LEAK_CB', 'X509_NAME', 'blkcnt_t',
02552            'uint_least16_t', '__darwin_dev_t', 'evp_cipher_info_st',
02553            'BN_BLINDING', 'ssl3_state_st', 'uint_least64_t',
02554            'user_addr_t', 'DES_key_schedule', 'RIPEMD160_CTX',
02555            'u_char', 'X509_algor_st', 'uid_t', 'sess_cert_st',
02556            'u_int64_t', 'u_int16_t', 'sigset_t', '__darwin_ptrdiff_t',
02557            'ASN1_CTX', 'STACK', '__int32_t', 'UI_METHOD',
02558            'NETSCAPE_SPKI', 'UIT_PROMPT', 'st_CRYPTO_EX_DATA_IMPL',
02559            'cast_key_st', 'X509_HASH_DIR_CTX', 'sigevent',
02560            'user_ssize_t', 'clock_t', 'aes_key_st',
02561            '__darwin_socklen_t', '__darwin_intptr_t', 'int_fast64_t',
02562            'asn1_string_table_st', 'uint_fast32_t',
02563            'ASN1_VISIBLESTRING', 'DSA_SIG_st', 'obj_name_st',
02564            'X509_LOOKUP_METHOD', 'u_int32_t', 'EVP_CIPHER_INFO',
02565            '__gnuc_va_list', 'AES_KEY', 'PKCS7_ISSUER_AND_SERIAL',
02566            'BN_CTX', '__darwin_blkcnt_t', 'key_t', 'SHA_CTX',
02567            'pkcs7_signed_st', 'SSL', 'N10pem_ctx_st4DOLLAR_16E',
02568            'pthread_attr_t', 'EVP_MD', 'uint', 'ASN1_BOOLEAN',
02569            'ino_t', '__darwin_clock_t', 'ASN1_OCTET_STRING',
02570            'asn1_ctx_st', 'BIO_F_BUFFER_CTX', 'bn_mont_ctx_st',
02571            'X509_REQ_INFO', 'PEM_CTX', 'sigvec',
02572            '__darwin_pthread_mutexattr_t', 'x509_attributes_st',
02573            'stack_t', '__darwin_mode_t', '__mbstate_t',
02574            'asn1_object_st', 'ASN1_ENCODING', '__uint8_t',
02575            'LHASH_NODE', 'PKCS7_SIGNER_INFO', 'asn1_method_st',
02576            'stack_st', 'bio_info_cb', 'div_t', 'UIT_VERIFY',
02577            'PBEPARAM_st', 'N4wait3DOLLAR_3E', 'quad_t', '__siginfo',
02578            '__darwin_mbstate_t', 'rsa_st', 'ASN1_UNIVERSALSTRING',
02579            'uint64_t', 'ssl_comp_st', 'X509_OBJECT', 'pthread_cond_t',
02580            'DH', '__darwin_wctype_t', 'PKCS7_ENVELOPE', 'ASN1_TLC_st',
02581            'sig_atomic_t', 'BIO', 'nlink_t', 'BUF_MEM', 'SSL3_RECORD',
02582            'bio_method_st', 'timeval', 'UI_string_types', 'BIO_dummy',
02583            'ssl_ctx_st', 'NETSCAPE_CERT_SEQUENCE',
02584            'BIT_STRING_BITNAME_st', '__darwin_pthread_attr_t',
02585            'int8_t', '__darwin_wint_t', 'OBJ_NAME',
02586            'PKCS8_PRIV_KEY_INFO', 'PBE2PARAM_st',
02587            'LHASH_DOALL_FN_TYPE', 'x509_st', 'X509_VAL', 'dev_t',
02588            'ASN1_TEMPLATE_st', 'MD5state_st', '__uint16_t',
02589            'LHASH_DOALL_ARG_FN_TYPE', 'mdc2_ctx_st', 'SSL3_STATE',
02590            'ssl3_buffer_st', 'ASN1_ITEM_EXP',
02591            '_opaque_pthread_condattr_t', 'mode_t', 'ASN1_VALUE',
02592            'qaddr_t', '__darwin_gid_t', 'EVP_PKEY', 'CRYPTO_EX_free',
02593            '_ossl_old_des_cblock', 'X509_INFO', 'asn1_string_st',
02594            'intptr_t', 'UIT_INFO', 'int_fast8_t', 'sigaltstack',
02595            'env_md_st', 'LHASH', '__darwin_ucontext_t',
02596            'PKCS7_SIGN_ENVELOPE', '__darwin_mcontext_t', 'ct_rune_t',
02597            'MD2_CTX', 'pthread_once_t', 'SSL3_BUFFER', 'fd_mask',
02598            'ASN1_TYPE', 'PKCS7_SIGNED', 'ssl3_record_st', 'BF_KEY',
02599            'MD4state_st', 'MD4_CTX', 'int16_t', 'SSL_CIPHER',
02600            'rune_t', 'X509_TRUST', 'siginfo_t', 'X509_STORE',
02601            '__sbuf', 'X509_STORE_CTX', '__darwin_blksize_t', 'ldiv_t',
02602            'ASN1_TIME', 'SSL_METHOD', 'X509_LOOKUP',
02603            'Netscape_spki_st', 'P_PID', 'sigaction', 'sig_t',
02604            'hostent', 'x509_cert_aux_st', '_opaque_pthread_cond_t',
02605            'segsz_t', 'ushort', '__darwin_ct_rune_t', 'fd_set',
02606            'BN_RECP_CTX', 'x509_lookup_st', 'uint16_t', 'pkcs7_st',
02607            'asn1_header_st', '__darwin_pthread_key_t',
02608            'x509_trust_st', '__darwin_pthread_handler_rec', 'int32_t',
02609            'X509_CRL_INFO', 'N11evp_pkey_st4DOLLAR_12E', 'MDC2_CTX',
02610            'N23_ossl_old_des_ks_struct4DOLLAR_10E', 'ASN1_HEADER',
02611            'X509_crl_info_st', 'LHASH_HASH_FN_TYPE',
02612            '_opaque_pthread_mutexattr_t', 'ssl_st',
02613            'N8pkcs7_st4DOLLAR_15E', 'evp_pkey_st',
02614            'pkcs7_signedandenveloped_st', '__darwin_mach_port_t',
02615            'EVP_PBE_KEYGEN', '_opaque_pthread_mutex_t',
02616            'ASN1_UTCTIME', 'mcontext', 'crypto_ex_data_func_st',
02617            'u_long', 'PBKDF2PARAM_st', 'rc4_key_st', 'DSA_METHOD',
02618            'EVP_CIPHER', 'BIT_STRING_BITNAME', 'PKCS7_RECIP_INFO',
02619            'ssl3_enc_method', 'X509_CERT_AUX', 'uintmax_t',
02620            'int_fast16_t', 'RC5_32_KEY', 'ucontext64', 'ASN1_INTEGER',
02621            'u_short', 'N14x509_object_st4DOLLAR_14E', 'mcontext64',
02622            'X509_sig_st', 'ASN1_GENERALSTRING', 'PKCS7', '__sFILEX',
02623            'X509_name_entry_st', 'ssl_session_st', 'caddr_t',
02624            'bignum_st', 'X509_CINF', '__darwin_pthread_cond_t',
02625            'ASN1_TLC', 'PKCS7_ENCRYPT', 'NETSCAPE_SPKAC',
02626            'Netscape_spkac_st', 'idtype_t', 'UIT_ERROR',
02627            'uint_fast64_t', 'in_addr_t', 'pthread_mutex_t',
02628            '__int64_t', 'ASN1_BMPSTRING', 'uint32_t',
02629            'PEM_ENCODE_SEAL_CTX', 'suseconds_t', 'ASN1_OBJECT',
02630            'X509_val_st', 'private_key_st', 'CRYPTO_dynlock',
02631            'X509_objects_st', 'CRYPTO_EX_DATA_IMPL',
02632            'pthread_condattr_t', 'PKCS7_DIGEST', 'uint_least32_t',
02633            'ASN1_STRING', '__uint32_t', 'P_PGID', 'rsa_meth_st',
02634            'X509_crl_st', 'RC2_KEY', '__darwin_fsfilcnt_t',
02635            'X509_revoked_st', 'PBE2PARAM', 'blksize_t',
02636            'Netscape_certificate_sequence', 'ssl_cipher_st',
02637            'bignum_ctx', 'register_t', 'ASN1_UTF8STRING',
02638            'pkcs7_encrypted_st', 'RC4_KEY', '__darwin_ucontext64_t',
02639            'N13ssl2_state_st4DOLLAR_19E', 'bn_recp_ctx_st',
02640            'CAST_KEY', 'X509_ATTRIBUTE', '__darwin_suseconds_t',
02641            '__sigaction', 'user_ulong_t', 'syscall_arg_t',
02642            'evp_cipher_ctx_st', 'X509_ALGOR', 'mcontext_t',
02643            'const_DES_cblock', '__darwin_fsblkcnt_t', 'dsa_st',
02644            'int_least8_t', 'MD2state_st', 'X509_EXTENSION',
02645            'GEN_SESSION_CB', 'int_least16_t', '__darwin_wctrans_t',
02646            'PBKDF2PARAM', 'x509_lookup_method_st', 'pem_password_cb',
02647            'X509_info_st', 'x509_store_st', '__darwin_natural_t',
02648            'X509_pubkey_st', 'pkcs7_digest_st', '__darwin_size_t',
02649            'ASN1_STRING_TABLE', 'OSLittleEndian', 'RIPEMD160state_st',
02650            'pkcs7_enveloped_st', 'UI', 'ptrdiff_t', 'X509_REQ',
02651            'CRYPTO_dynlock_value', 'X509_req_st', 'x509_store_ctx_st',
02652            'N13ssl3_state_st4DOLLAR_20E', 'lhash_node_st',
02653            '__darwin_pthread_mutex_t', 'LHASH_COMP_FN_TYPE',
02654            '__darwin_rune_t', 'rlimit', '__darwin_pthread_once_t',
02655            'OSBigEndian', 'uintptr_t', '__darwin_uid_t', 'u_int',
02656            'ASN1_T61STRING', 'gid_t', 'ssl_method_st', 'ASN1_ITEM',
02657            'ASN1_ENUMERATED', '_opaque_pthread_rwlock_t',
02658            'pkcs8_priv_key_info_st', 'intmax_t', 'sigcontext',
02659            'X509_CRL', 'rc2_key_st', 'engine_st', 'x509_object_st',
02660            '_opaque_pthread_once_t', 'DES_ks', 'SSL_COMP',
02661            'dsa_method', 'int64_t', 'bio_st', 'bf_key_st',
02662            'ASN1_GENERALIZEDTIME', 'PKCS7_ENC_CONTENT',
02663            '__darwin_pid_t', 'lldiv_t', 'comp_method_st',
02664            'EVP_MD_CTX', 'evp_cipher_st', 'X509_name_st',
02665            'x509_hash_dir_st', '__darwin_mach_port_name_t',
02666            'useconds_t', 'user_size_t', 'SSL_SESSION', 'rusage',
02667            'ssl_crock_st', 'int_least32_t', '__sigaction_u', 'dh_st',
02668            'P_ALL', '__darwin_stack_t', 'N6DES_ks3DOLLAR_9E',
02669            'comp_ctx_st', 'X509_CERT_FILE_CTX']